3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x[2] = 'foo'; $x[3] = 'bar'; unset($x[3]); $x[] = 'baz'; var_dump($x);
based on slN24
Output for 4.3.0 - 7.3.0rc6
array(2) { [2]=> string(3) "foo" [4]=> string(3) "baz" }