3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = [1 => 1]; echo json_encode($a);
Output for 5.4.0 - 7.1.0
{"1":1}
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/j59UL on line 3
Process exited with code 255.