3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rows_count = 4; $array = range(1, 9); $chuncked_array = array_chunk($array, $rows_count); echo "<table>\n"; call_user_func_array('array_map', array_merge(array(function() { echo "<tr>\n"; array_map(function ($value) { echo " <td>$value</td>\n"; }, func_get_args()); echo "</tr>\n"; }), $chuncked_array)); echo "</table>\n";
Output for git.master, git.master_jit, rfc.property-hooks
<table> <tr> <td>1</td> <td>5</td> <td>9</td> </tr> <tr> <td>2</td> <td>6</td> <td></td> </tr> <tr> <td>3</td> <td>7</td> <td></td> </tr> <tr> <td>4</td> <td>8</td> <td></td> </tr> </table>

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:
40.84 ms | 401 KiB | 8 Q