3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myArray = [ { "id": 86, "name": "admin/login", }, { "id": 87, "name": "admin/logout", }, { "id": 88, "name": "admin/desktop", } ]
Output for 5.5.0 - 5.5.34, 5.6.0 - 5.6.20, 7.0.0 - 7.0.5
Parse error: syntax error, unexpected '{', expecting ']' in /in/2rlpu on line 5
Process exited with code 255.

preferences:
191.19 ms | 1395 KiB | 68 Q