3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('a' => 'b', '2' => 'c'); $a[] = 'd'; var_dump($a);
Output for 4.3.0 - 7.1.0
array(3) { ["a"]=> string(1) "b" [2]=> string(1) "c" [3]=> string(1) "d" }