3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class x{ public $for; } (new x)->for = 'hi';
Output for 7.0.0
Fatal error: Cannot use temporary expression in write context in /in/iSfZ1 on line 7
Process exited with code 255.
Output for 5.4.10 - 5.6.16
Parse error: syntax error, unexpected '=' in /in/iSfZ1 on line 7
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/iSfZ1 on line 7
Process exited with code 255.