3v4l.org

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