3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i = 1 ; $i <= 4 ; $i++){ for($j = 1 ; $j >= $i ; $j --){ echo "*"; } for ($k=1; $k <=4 ; $k++) { echo $k; } for ($l=3; $l >= 1 ; $l--) { echo $l; } echo "<br />"; }
Output for 7.4.0 - 7.4.30, 8.0.1 - 8.0.20, 8.1.0 - 8.1.7
*1234321<br />1234321<br />1234321<br />1234321<br />

preferences:
32.6 ms | 413 KiB | 12 Q