3v4l.org

run code in 300+ PHP versions simultaneously
<?php $target = array(1,2,3,4,5,6,7,8,9,10,11,12,13); $target = array_chunk($target, 3); //Split the array into chunks of 3. $result = array_map(function ($el) { return implode("</td><td>", $el); //Implode the inner arrays with table cells }, $target); $result = implode("</td></tr><tr><td>", $result); //Implode the outer arrays with table rows. echo "<table><tr><td>"; echo $result; echo "</td></tr></table>";
Output for git.master, git.master_jit, rfc.property-hooks
<table><tr><td>1</td><td>2</td><td>3</td></tr><tr><td>4</td><td>5</td><td>6</td></tr><tr><td>7</td><td>8</td><td>9</td></tr><tr><td>10</td><td>11</td><td>12</td></tr><tr><td>13</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:
123.01 ms | 406 KiB | 5 Q