3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(array('1a' => 'A', 1 => 'A', 'C', 2 => 'A'));
based on VTfan
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
array(3) { ["1a"]=> string(1) "A" [1]=> string(1) "A" [2]=> string(1) "A" }
Output for hhvm-3.10.0

Process exited with code 153.