3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class StaticTest { public function test() { echo 'Works fine!'; } } call_user_func_array( 'StaticTest::test', [] );
based on ctgU6
Output for 7.0.0 - 7.3.1
Deprecated: Non-static method StaticTest::test() should not be called statically in /in/irrel on line 9 Works fine!
Output for hhvm-3.15.4 - 3.17.3
Works fine!
Output for hhvm-3.12.14

Process exited with code 137.
Output for 5.6.0 - 5.6.30
Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method StaticTest::test() should not be called statically in /in/irrel on line 9 Works fine!