3v4l.org

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