3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $b = array(-1 => 0); array_pop($b); $b[] = 0; $b[] = 0; var_dump($b);
Output for 5.4.32 - 5.4.45, 5.5.16 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(2) { [0]=> int(0) [1]=> int(0) }
Output for 5.2.10 - 5.4.31, 5.5.0 - 5.5.15
array(2) { [-1]=> int(0) [9223372036854775807]=> int(0) }
Output for 4.3.0 - 5.2.9
array(2) { [-1]=> int(0) [0]=> int(0) }