3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(123 => 'a', 12.34 => 'a', null => 'a', true => 'a', false => 'a', null => 'a'); var_dump($a);
Output for 4.3.2 - 7.3.1
array(5) { [123]=> string(1) "a" [12]=> string(1) "a" [""]=> string(1) "a" [1]=> string(1) "a" [0]=> string(1) "a" }
Output for 4.3.0 - 4.3.1
array(3) { [123]=> string(1) "a" [12]=> string(1) "a" [""]=> string(1) "a" }