3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getList(){ return $aarr = ['Developer'=>'SAchin', 'Designer'=>'Hemant','SeniorDeveloper'=>'RAnjit']; } $item= getList()[]; echo $item;
Output for 5.4.0 - 5.4.21
Fatal error: Cannot use [] for reading in /in/MASVN on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected '[' in /in/MASVN on line 3
Process exited with code 255.

preferences:
181.38 ms | 1395 KiB | 57 Q