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.4.0 - 5.4.22
Parse error: syntax error, unexpected ')' in /in/skDoY on line 21
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/skDoY on line 19
Process exited with code 255.