308
The simplest way is:
echo debug_backtrace()[1]['function'];
As noted in the comments below, this can be further optimized by passing arguments to:
object and args indicesecho debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS,2)[1]['function'];