3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = json_decode('{"b": {"c": {"10": "abc", "11": "def"}}}'); $aa = (array)$a->b->c; var_dump($aa['10']);
Output for 7.2.0 - 7.3.1
string(3) "abc"
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.25
Notice: Undefined offset: 10 in /in/vvikf on line 7 NULL
Output for hhvm-3.15.4
Notice: Undefined index: 10 in /in/vvikf on line 7 NULL