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); echo $l[2]; } } ?>
Output for 5.3.28 - 5.3.29, 5.4.18 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined offset: 2 in /in/jZvEE on line 19 Notice: Undefined offset: 2 in /in/jZvEE on line 19 Notice: Undefined offset: 2 in /in/jZvEE on line 19 Notice: Undefined offset: 2 in /in/jZvEE on line 19 Notice: Undefined offset: 2 in /in/jZvEE on line 19
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined index: 2 in /in/jZvEE on line 19 Notice: Undefined index: 2 in /in/jZvEE on line 19 Notice: Undefined index: 2 in /in/jZvEE on line 19 Notice: Undefined index: 2 in /in/jZvEE on line 19 Notice: Undefined index: 2 in /in/jZvEE on line 19
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.17
Notice: Undefined offset: 2 in /in/XgdUU on line 19 Notice: Undefined offset: 2 in /in/XgdUU on line 19 Notice: Undefined offset: 2 in /in/XgdUU on line 19 Notice: Undefined offset: 2 in /in/XgdUU on line 19 Notice: Undefined offset: 2 in /in/XgdUU on line 19
Output for 4.3.1 - 5.2.17
Notice: Undefined offset: 2 in /in/XgdUU on line 19 Notice: Undefined offset: 2 in /in/XgdUU on line 19 Notice: Undefined offset: 2 in /in/XgdUU on line 19 Notice: Undefined offset: 2 in /in/XgdUU on line 19 Notice: Undefined offset: 2 in /in/XgdUU on line 19
Output for 4.3.0
Notice: Undefined offset: 2 in /in/jZvEE on line 19 Notice: Undefined offset: 2 in /in/jZvEE on line 19 Notice: Undefined offset: 2 in /in/jZvEE on line 19 Notice: Undefined offset: 2 in /in/jZvEE on line 19 Notice: Undefined offset: 2 in /in/jZvEE on line 19