1 2 3 4 5 6 7 8 9
<?php function get_array() { return array('foo', 'bar'); } echo get_array()[0]; ?>
1 2
Parse error: syntax error, unexpected '[', expecting ',' or ';' on line 7