3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $hello[0]["y:1"] = "v:a"; $hello[0]["y:2"] = "v:b"; for($i=0;$i<count($hello[0]);$i++) { echo $hello[0]["y:".$i+1]; }
based on D53KF
Output for 7.1.0 - 7.3.0rc3
Warning: A non-numeric value encountered in /in/E76oc on line 9 Notice: Undefined offset: 1 in /in/E76oc on line 9 Warning: A non-numeric value encountered in /in/E76oc on line 9 Notice: Undefined offset: 1 in /in/E76oc on line 9
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.0.20
Notice: Undefined offset: 1 in /in/E76oc on line 9 Notice: Undefined offset: 1 in /in/E76oc on line 9
Output for hhvm-3.15.4
Notice: Undefined index: 1 in /in/E76oc on line 9 Notice: Undefined index: 1 in /in/E76oc on line 9