3v4l.org

run code in 200+ 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 - 7.2.0
pass
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.