3v4l.org

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