3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array('a', 4=> 'b', 'a' => 'b','c'); unset($a[4]); unset($a[5]); array_push($a, 'c'); var_dump($a);
based on sbZGR
Output for 4.3.0 - 7.1.7
array(3) { [0]=> string(1) "a" ["a"]=> string(1) "b" [6]=> string(1) "c" }