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('"', $line); echo $l[1]; } } ?>
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
UsernameUsername2 Notice: Undefined offset: 1 in /in/n9sZO on line 19 Admin Notice: Undefined offset: 1 in /in/n9sZO on line 19
Output for hhvm-3.10.0 - 3.12.0
UsernameUsername2 Notice: Undefined index: 1 in /in/n9sZO on line 19 Admin Notice: Undefined index: 1 in /in/n9sZO on line 19
Output for 4.3.0 - 5.2.17
UsernameUsername2 Notice: Undefined offset: 1 in /in/n9sZO on line 19 Admin Notice: Undefined offset: 1 in /in/n9sZO on line 19