The simplest way is:
echo debug_backtrace()[1]['function'];
1.4m articles
1.4m replys
5 comments
57.0k users