3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump("0xA" == "10"); $a["-0"] = true; var_dump($a["0"]);
based on gcOoo
Output for 7.0.0 - 7.2.0
bool(false) Notice: Undefined offset: 0 in /in/5dUgf on line 5 NULL
Output for 5.4.12 - 5.6.28
bool(true) Notice: Undefined offset: 0 in /in/5dUgf on line 5 NULL
Output for 5.3.22 - 5.3.29
bool(true) Notice: Undefined index: 0 in /in/5dUgf on line 5 NULL