3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'a' , 'b', 'c', 'd' , 'e', 'f', 'g' , 'h', 'i', 'j' , 'k', 'l', 'm' , 'n', 'o', 'p' , 'q', 'r' ]; foreach (array_chunk($array, 4) as $row) { echo '<tr><td>' , implode('</td><td>', $row) , '</td>' , str_repeat('<td></td>', 4-count($row)) , '</tr>'; echo "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
<tr><td>a</td><td>b</td><td>c</td><td>d</td></tr> <tr><td>e</td><td>f</td><td>g</td><td>h</td></tr> <tr><td>i</td><td>j</td><td>k</td><td>l</td></tr> <tr><td>m</td><td>n</td><td>o</td><td>p</td></tr> <tr><td>q</td><td>r</td><td></td><td></td></tr>

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
60.54 ms | 402 KiB | 8 Q