3v4l.org

run code in 300+ PHP versions simultaneously
<?php $optionsA=array("start"=>1); $optionsA[]=array("end"=2); echo json_encode($optionsA);
Output for 5.3.25 - 5.3.26, 5.4.16
Parse error: syntax error, unexpected '=', expecting ')' in /in/ETmXI on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.24, 5.4.0 - 5.4.15
Parse error: syntax error, unexpected '=', expecting ')' in UgD8k on line 3
Process exited with code 255.

preferences:
169 ms | 1399 KiB | 51 Q