3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( array("type" => "shirt", "artnr" => "101400", "kleur" => "5000", "maten" => array(12 => "152", 2 => "164")); array("type" => "short", "artnr" => "1930", "kleur" => "1000", "maten" => array(12 => "152", 2 => "164")); ); $output = json_encode($array); var_dump($output);
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.23
Parse error: syntax error, unexpected ';', expecting ')' in /in/YHiZH on line 4
Process exited with code 255.

preferences:
173.48 ms | 1395 KiB | 60 Q