3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array( 1 => "a", "1" => "b", 1.5 => "c", '123x' => 'c2' , true => "d", ); var_dump($array); ?>
Output for 4.3.2 - 7.1.0
array(2) { [1]=> string(1) "d" ["123x"]=> string(2) "c2" }
Output for 4.3.0 - 4.3.1
array(2) { [1]=> string(1) "c" ["123x"]=> string(2) "c2" }