3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A{ function foo(){ print "foo"; } } call_user_func('a::foo');
Output for 7.0.0 - 7.1.0
Deprecated: Non-static method A::foo() should not be called statically in /in/MXepg on line 9 foo
Output for 5.3.0 - 5.6.28
Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method A::foo() should not be called statically in /in/MXepg on line 9 foo
Output for 4.3.2 - 5.2.17
Warning: call_user_func(a::foo): First argument is expected to be a valid callback in /in/MXepg on line 9
Output for 4.3.0 - 4.3.1
Warning: call_user_func(a::foo) [http://www.php.net/function.call-user-func]: First argument is expected to be a valid callback in /in/MXepg on line 9