- Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.15
- Parse error: syntax error, unexpected '{', expecting ']' in /in/VGpKM on line 11
Process exited with code 255.
<?php
$object = new stdClass();
$object->{'1'} = 'one';
$array = (array) $object;
var_dump($array);
echo $array[{'1'}];