3v4l.org

run code in 200+ 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); echo $l[1] . "<br />"; } } ?>
Output for 5.3.0 - 7.1.0, 7.1.6 - 7.3.0rc4
Notice: Undefined offset: 1 in /in/sp25f on line 19 <br /> Notice: Undefined offset: 1 in /in/sp25f on line 19 <br /> Notice: Undefined offset: 1 in /in/sp25f on line 19 <br /> Notice: Undefined offset: 1 in /in/sp25f on line 19 <br /> Notice: Undefined offset: 1 in /in/sp25f on line 19 <br />
Output for 7.1.5

Process exited with code 137.
Output for 4.3.0 - 5.2.17
Notice: Undefined offset: 1 in /in/sp25f on line 19 <br /> Notice: Undefined offset: 1 in /in/sp25f on line 19 <br /> Notice: Undefined offset: 1 in /in/sp25f on line 19 <br /> Notice: Undefined offset: 1 in /in/sp25f on line 19 <br /> Notice: Undefined offset: 1 in /in/sp25f on line 19 <br />