3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $o = (new stdClass)->text = "test"; var_dump($o);
Output for 7.0.0 - 7.1.7
Fatal error: Cannot use temporary expression in write context in /in/vSDk7 on line 3
Process exited with code 255.
Output for hhvm-3.15.4
string(4) "test"
Output for 5.6.0 - 5.6.30
Parse error: syntax error, unexpected '=' in /in/vSDk7 on line 3
Process exited with code 255.