3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $matches = array('a','b','c','d','e','f','g','h','i','j','k','l'); for($i = 0; $i <= count($matches[0]); $i++ ) echo "href = {$matches[1][$i]}, alt = {$matches[2][$i]}";
Output for 5.2.10 - 5.6.28, 7.0.0 - 7.1.0
href = b, alt = c Notice: Uninitialized string offset: 1 in /in/5bqdR on line 5 Notice: Uninitialized string offset: 1 in /in/5bqdR on line 5 href = , alt =
Output for hhvm-3.10.0 - 3.12.0
href = b, alt = chref = , alt =
Output for 4.3.0 - 5.2.9
href = b, alt = c Notice: Uninitialized string offset: 1 in /in/5bqdR on line 5 Notice: Uninitialized string offset: 1 in /in/5bqdR on line 5 href = , alt =