3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = [1=>'a', 3=>'v', 5=>'t'] + ['z', 'b','m']; var_dump($a); echo count($a);
Output for 5.6.30, hhvm-3.15.4 - 3.22.0, 7.0.0 - 7.2.9
array(5) { [1]=> string(1) "a" [3]=> string(1) "v" [5]=> string(1) "t" [0]=> string(1) "z" [2]=> string(1) "m" } 5