3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $obj = new stdClass(); $obj->foo = 'bar'; $obj->hello = array('world'); print_r($obj['foo'])
Output for 5.4.0 - 5.4.20
Parse error: syntax error, unexpected end of file in /in/vYouL on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected $end in /in/vYouL on line 7
Process exited with code 255.