3v4l.org

run code in 300+ PHP versions simultaneously
<?php function printPyramid($rows){ for($i = 1; $i <= $rows; ++$i){ echo str_repeat("&nbsp;", $rows - $i); for($j = $i; $j >= 1; --$j){ echo $j; } for($j = 2; $j <= $i; ++$j){ echo $j; } echo PHP_EOL; } } printPyramid(7);
Output for git.master, git.master_jit, rfc.property-hooks
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;212 &nbsp;&nbsp;&nbsp;&nbsp;32123 &nbsp;&nbsp;&nbsp;4321234 &nbsp;&nbsp;543212345 &nbsp;65432123456 7654321234567

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:
32.76 ms | 405 KiB | 5 Q