3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A{ function foo(){ } } call_user_func('a', 'foo');
Output for 5.3.0 - 5.6.21, 7.0.0 - 7.1.0
Warning: call_user_func() expects parameter 1 to be a valid callback, function 'a' not found or invalid function name in /in/cn6vN on line 8
Output for hhvm-3.12.0
Warning: Invalid argument: function: method 'a' not found in /in/cn6vN on line 8
Output for hhvm-3.10.0
Warning: Invalid argument: function: method 'a' not found in /in/cn6vN on line 6
Output for 4.3.2 - 5.2.17
Warning: call_user_func(a): First argument is expected to be a valid callback in /in/cn6vN on line 8
Output for 4.3.0 - 4.3.1
Warning: call_user_func(a) [http://www.php.net/function.call-user-func]: First argument is expected to be a valid callback in /in/cn6vN on line 8