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); array_shift($l[0]); echo $l[0]; } ?>
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: array_shift() expects parameter 1 to be array, null given in /in/AEY5U on line 18 Warning: array_shift() expects parameter 1 to be array, string given in /in/AEY5U on line 18 Warning: array_shift() expects parameter 1 to be array, string given in /in/AEY5U on line 18
Output for hhvm-3.12.0
Warning: array_shift() expects parameter 1 to be an array or mutable collection in /in/AEY5U on line 18 Warning: array_shift() expects parameter 1 to be an array or mutable collection in /in/AEY5U on line 18 Warning: array_shift() expects parameter 1 to be an array or mutable collection in /in/AEY5U on line 18
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.2 - 5.2.17
Warning: array_shift(): The argument should be an array in /in/AEY5U on line 18 Warning: array_shift(): The argument should be an array in /in/AEY5U on line 18 Warning: array_shift(): The argument should be an array in /in/AEY5U on line 18
Output for 4.3.0 - 4.3.1
Warning: array_shift() [http://www.php.net/function.array-shift]: The argument should be an array in /in/AEY5U on line 18 Warning: array_shift() [http://www.php.net/function.array-shift]: The argument should be an array in /in/AEY5U on line 18 Warning: array_shift() [http://www.php.net/function.array-shift]: The argument should be an array in /in/AEY5U on line 18