3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array( array( "id": "4", "name": "car", "pid": "0" ), array( "id": "5", "name": "lights", "pid": "4" ), array( "id": "6", "name": "fog", "pid": "5" ) ), array( "array( "id": "1", "name": "bike", "pid": "0" ), array( "id": "2", "name": "wheel", "pid": "1" ), array( "id": "3", "name": "tire", "pid": "2" ) ), array( "id": "7", "name": "car", "pid": "0 ), array( "id": "8", "name": "lights", "pid": "7" ), array( "id": "9", "name: "brake", "pid": "8" ) ), array( "id": "10", "name": "car", "pid": "0" ), array( "id": 11", "name": engine, "pid": "10" ) ), );
Output for 5.3.0 - 5.4.25
Parse error: syntax error, unexpected ':', expecting ')' in /in/XvTTC on line 4
Process exited with code 255.