3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class foo { function bar($arg, $arg2) { echo __METHOD__, " got $arg and $arg2\n"; } } $foo = new foo; call_user_func_array(array($foo, "bar"), array("three", "four")); ?>
Output for 5.0.0 - 7.2.0
foo::bar got three and four
Output for 4.3.0 - 4.4.9
Notice: Use of undefined constant __METHOD__ - assumed '__METHOD__' in /in/nmKYW on line 4 __METHOD__ got three and four