3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 1; // "$i" is a simple variable that will represent our loop's iteration number while ($i <= 8) { // forces the while loop to have an iteration ceiling of 8 and no more echo 'I am index ' . $i . ' of this while loop. <br />'; $i++; // increment value by one each time the loop iterates } ?>
Output for git.master, git.master_jit, rfc.property-hooks
I am index 1 of this while loop. <br />I am index 2 of this while loop. <br />I am index 3 of this while loop. <br />I am index 4 of this while loop. <br />I am index 5 of this while loop. <br />I am index 6 of this while loop. <br />I am index 7 of this while loop. <br />I am index 8 of this while loop. <br />

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:
37.27 ms | 402 KiB | 8 Q