3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(array('john', 4 => 'test', 3 => 'bob', 'nein'));
based on Y7H87
Output for 4.3.0 - 7.2.0
array(4) { [0]=> string(4) "john" [4]=> string(4) "test" [3]=> string(3) "bob" [5]=> string(4) "nein" }