3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.27, 5.4.0 - 5.4.22
Parse error: syntax error, unexpected '{', expecting '(' in /in/g8f75 on line 5
Process exited with code 255.

preferences:
172.07 ms | 1399 KiB | 58 Q