3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array( "1" => "A", "V", "3" => "B", ); echo count($a); // returns 2 var_dump( $a );
based on VkR3K
Output for 4.3.0 - 7.2.0
3array(3) { [1]=> string(1) "A" [2]=> string(1) "V" [3]=> string(1) "B" }