3v4l.org

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