3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array ( -1 => "test", 0.97 => "boo", "baz"); print $a[0]; var_dump($a);
based on 1QIYk
Output for 4.3.0 - 7.2.0
booarray(3) { [-1]=> string(4) "test" [0]=> string(3) "boo" [1]=> string(3) "baz" }