3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $obj = new stdClass(); $obj->foo = array(); {$obj->foo}[] = 'bar'; print_r($obj);
Output for 5.3.0 - 5.4.12
Parse error: syntax error, unexpected '}' in /in/BU9ll on line 5
Process exited with code 255.