3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class T { public function __get($name) { return 4; } public function __set($name,$val) {} } $t = new T(); $p = T->h = 5; var_dump($p);
Output for 5.4.0 - 5.4.13
Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /in/TICXA on line 16
Process exited with code 255.
Output for 5.3.0 - 5.3.23
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/TICXA on line 16
Process exited with code 255.