3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 0; $header = 0; $hitungLoopingObat= 9; do{ $remainder = ($i+1) % 5; $head = ($remainder+$i) % 5; $head_total = count($head); if($remainder == 1) echo "Header " .$header++. "\n"; echo "Obat Ke " . $head_total . "\n"; if( $remainder == 0) { echo "new line \n"; } $i++; } while($i <= $hitungLoopingObat); if($remainder > 0){ $loncat = (5 - $remainder)+1; for($j=0; $j<$loncat; $j++) { echo "Sisa New Line " .$loncat. "\n"; } }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, int given in /in/lIsT5:12 Stack trace: #0 {main} thrown in /in/lIsT5 on line 12
Process exited with code 255.

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.27 ms | 401 KiB | 8 Q