3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class foo { function bar() { echo 'baz'; } } call_user_func('foo::bar()');
Output for 5.3.0 - 7.1.0
Warning: call_user_func() expects parameter 1 to be a valid callback, class 'foo' does not have a method 'bar()' in /in/vfmLv on line 10
Output for 4.3.2 - 5.2.17
Warning: call_user_func(foo::bar()): First argument is expected to be a valid callback in /in/vfmLv on line 10
Output for 4.3.0 - 4.3.1
Warning: call_user_func(foo::bar()) [http://www.php.net/function.call-user-func]: First argument is expected to be a valid callback in /in/vfmLv on line 10