3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { static function b { return 'soy b static'; } function a() { return 'soy a'; } } print (new a)->a(); print call_user_func([new a, 'a']); print call_user_func_array(new a, 'a');
Output for 5.3.0 - 5.4.22
Parse error: syntax error, unexpected '{', expecting '(' in /in/6kB7Z on line 5
Process exited with code 255.