3v4l.org

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