3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $json = '{"1":1,"5":1}'; $array_val=json_decode($json, true); echo $array_val[1];
based on C7OVT
Output for 5.6.0 - 5.6.38, hhvm-3.12.14 - 3.22.0, 7.0.0 - 7.2.11
1