3v4l.org

run code in 300+ PHP versions simultaneously
<?php $size = 5; $max = $size - 1; echo "<table>\n"; for ($row = 0; $row < $size; ++$row) { echo "\t<tr>"; for ($col = 0; $col < $size; ++$col) { echo "<td>" . (($row >= $max / 2 ? $max - $row : $row) + ($col >= $max / 2 ? $max - $col : $col)) . "</td>"; } echo "</tr>\n"; } echo "</table>";
Output for git.master, git.master_jit, rfc.property-hooks
<table> <tr><td>0</td><td>1</td><td>2</td><td>1</td><td>0</td></tr> <tr><td>1</td><td>2</td><td>3</td><td>2</td><td>1</td></tr> <tr><td>2</td><td>3</td><td>4</td><td>3</td><td>2</td></tr> <tr><td>1</td><td>2</td><td>3</td><td>2</td><td>1</td></tr> <tr><td>0</td><td>1</td><td>2</td><td>1</td><td>0</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:
132.75 ms | 406 KiB | 5 Q