3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class foo { function bar($arg, $arg2, $arg3) { echo $arg + $arg2 + $arg3; } } $foo = new foo; call_user_func_array(array($foo, 1), array(2, 3)); ?>
Output for 5.3.0 - 7.1.0
Warning: call_user_func_array() expects parameter 1 to be a valid callback, second array member is not a valid method in /in/Lhkbn on line 10
Output for 5.0.0 - 5.2.17
Warning: call_user_func_array(): First argument is expected to be a valid callback, 'Array' was given in /in/Lhkbn on line 10
Output for 4.3.2 - 4.4.9
Warning: call_user_func_array(): First argumented is expected to be a valid callback, 'Array' was given in /in/Lhkbn on line 10
Output for 4.3.0 - 4.3.1
Warning: call_user_func_array() [http://www.php.net/function.call-user-func-array]: First argumented is expected to be a valid callback, 'Array' was given in /in/Lhkbn on line 10