3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = ' ;Head admins "Username" "Password" "abcdefghijk" "ab" "Username2" "Password2" "abcdehl" "ab" ;Admins "Admin" "Password" "abcd" "ab" '; $arr = explode("\n;", $str); foreach($arr as $section){ $lines = explode("\n", $section); array_shift($lines); foreach($lines as $line) $l = explode("\n", $line); print $l[1] . "\n"; } ?>
Output for 5.3.28 - 5.3.29, 5.4.18 - 7.1.0
Notice: Undefined variable: l in /in/kfdS4 on line 18 Notice: Undefined offset: 1 in /in/kfdS4 on line 18 Notice: Undefined offset: 1 in /in/kfdS4 on line 18
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.17
Notice: Undefined variable: l in /in/0C5Th on line 18 Notice: Undefined offset: 1 in /in/0C5Th on line 18 Notice: Undefined offset: 1 in /in/0C5Th on line 18
Output for 5.0.4 - 5.2.17
Notice: Undefined variable: l in /in/0C5Th on line 18 Notice: Undefined offset: 1 in /in/0C5Th on line 18 Notice: Undefined offset: 1 in /in/0C5Th on line 18
Output for 4.3.1 - 5.0.3
Notice: Undefined variable: l in /in/0C5Th on line 18 Notice: Undefined offset: 1 in /in/0C5Th on line 18 Notice: Undefined offset: 1 in /in/0C5Th on line 18
Output for 4.3.0
Notice: Undefined variable: l in /in/kfdS4 on line 18 Notice: Undefined offset: 1 in /in/kfdS4 on line 18 Notice: Undefined offset: 1 in /in/kfdS4 on line 18