3v4l.org

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