3v4l.org

run code in 150+ 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/I38ci on line 5
Process exited with code 255.