3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array=Array ( "1" => "Accounting & Financial", "2" => "Advertising Services", "3" => "Awards & Incentives", "4" => "Business Consultants", "5" => "Career Services", "6" => "Creative Services", "7" => "Data Management", "8" => "Distributors & Agents" ) ; $arr = Array ( "0" => Array ( "id" => "1" "category" => "Accounting & Financial" ) "1" => Array ( "id" => "2", "category" => "Advertising Services" ) );
Output for 5.4.0 - 5.4.25
Parse error: syntax error, unexpected '"category"' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in /in/uHlXE on line 19
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /in/uHlXE on line 19
Process exited with code 255.

preferences:
173.27 ms | 1386 KiB | 62 Q