- Output for 5.3.0 - 5.3.19, 5.4.0 - 5.4.9
- Parse error: syntax error, unexpected ':', expecting ')' in /in/58qOa on line 2
Process exited with code 255.
<?php
$arr = array('a' : 1, 'b' : 2, 'c' => 3, 'd' => 4, 'e' => 5);
echo json_encode($arr, JSON_PRETTY_PRINT);
?>