3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 0; $hitungLoopingObat= 7; do{ $remainder = ($i+1) % 5; echo "The number is " . $i . "\n"; if( $remainder == 0) { echo "new line \n"; } $i++; } while($i <= $hitungLoopingObat); if($remainder > 0){ $loncat = (5 - $remainder)+$hitungLoopingObat; for($j=0; $j<$loncat; $j++) { echo "new line \n"; } }
Output for git.master, git.master_jit, rfc.property-hooks
The number is 0 The number is 1 The number is 2 The number is 3 The number is 4 new line The number is 5 The number is 6 The number is 7 new line new line new line new line new line new line new line new line new line

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:
59.24 ms | 401 KiB | 8 Q