3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class O_B {} class O_A extends O_B { function __construct() { echo __CLASS__; } function oioi() { echo "arara"; } } function ff($classname) { echo 'class:' . $classname; } class_alias('O_A', 'A'); spl_autoload_register ('ff'); new A()->oioi();
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /in/6eLUi on line 24
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/6eLUi on line 24
Process exited with code 255.