3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array ( -1 => "test", false => "boo", 0.98 => "boo2", "baz"); print $a[0.97]; var_dump($a);
based on 2e26e
Output for 4.3.0 - 7.1.0
boo2array(3) { [-1]=> string(4) "test" [0]=> string(4) "boo2" [1]=> string(3) "baz" }