3v4l.org

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