3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function func() {echo 'fail';} class Foo { const bar = 'func'; public static function bar() { echo 'pass';} } @call_user_func([Foo, bar]);
Output for 5.4.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
pass
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.6 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/hWqAP on line 11
Process exited with code 255.