3v4l.org

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