3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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 '"1"' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in /in/TIglv on line 22
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/TIglv on line 22
Process exited with code 255.