3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class C { static function f($a) { echo 'running f() with arg: ' . $a; }} $c = 'C'; call_user_func(['C','f','1']);
based on uMDN7
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.1
Warning: call_user_func() expects parameter 1 to be a valid callback, array must have exactly two members in /in/AHMsf on line 8
Output for hhvm-3.12.14 - 3.17.3
Warning: Invalid argument: function: not a valid callback array in /in/AHMsf on line 8