3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r(array(__CLASS__, __METHOD__, func_get_args()));
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Warning: func_get_args(): Called from the global scope - no function context in /in/QndJt on line 3 Array ( [0] => [1] => [2] => )
Output for 4.3.2 - 4.4.9
Notice: Use of undefined constant __METHOD__ - assumed '__METHOD__' in /in/QndJt on line 3 Fatal error: func_get_args(): Can't be used as a function parameter in /in/QndJt on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant __METHOD__ - assumed '__METHOD__' in /in/QndJt on line 3 Fatal error: func_get_args(): Can't be used as a function parameter in /in/QndJt on line 3