3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = [ 1, 2, 3 ]; unset($a[2]); $b = array_values($a); $b[] = 4; var_dump($b);
based on lbt60
Output for 5.6.0 - 5.6.30, hhvm-3.18.5, hhvm-3.22.0, 7.0.0 - 7.3.0rc3
array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(4) }
Output for hhvm-3.21.3
array(3) { [0]=> int(1) [1]=> int(2) [3]=> int(4) }