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" '; ?> <table width="100%"> <?php $arr = explode("\n;", $str); foreach($arr as $section){ $lines = explode("\n", $section); array_shift($lines); foreach($lines as $line) ?> <tr> <td> <?php print $line . "\n"; ?> </td> </tr> <?php } ?> </table>
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
<table width="100%"> <tr> <td> Notice: Undefined variable: line in /in/7pW05 on line 24 </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> </table>
Output for 4.3.0 - 5.0.3
<table width="100%"> <tr> <td> Notice: Undefined variable: line in /in/7pW05 on line 24 </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> </table>