3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?hh $m = Map{0=>1}; var_dump(json_decode(json_encode($m)));
based on ZH0D4
Output for hhvm-3.10.0 - 3.12.0
object(stdClass)#2 (1) { ["0"]=> int(1) }
Output for 5.4.0 - 5.4.32
<?hh $m = Map{0=>1}; var_dump(json_decode(json_encode($m)));