3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array(-1 => 0); array_pop($array); array_push($array, 0); array_push($array, 0); var_dump($array); echo"\nDone"; ?>
Output for 5.4.32 - 7.2.0
array(2) { [0]=> int(0) [1]=> int(0) } Done
Output for 5.2.10 - 5.4.31
array(2) { [-1]=> int(0) [9223372036854775807]=> int(0) } Done
Output for 4.3.0 - 5.2.9
array(2) { [-1]=> int(0) [0]=> int(0) } Done