3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function abc() { return __FUNCTION_; } function xyz() { return abc(); } echo xyz();
based on eqL0l
Output for 7.2.0
Warning: Use of undefined constant __FUNCTION_ - assumed '__FUNCTION_' (this will throw an Error in a future version of PHP) in /in/8jITe on line 5 __FUNCTION_
Output for 5.3.19 - 7.1.10
Notice: Use of undefined constant __FUNCTION_ - assumed '__FUNCTION_' in /in/8jITe on line 5 __FUNCTION_