3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
foo::bar got three and four
Output for hhvm-3.10.0

Process exited with code 153.
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