3v4l.org

run code in 300+ PHP versions simultaneously
<?php header("Content-Type: text/plain; charset=utf-8"); mb_internal_encoding('utf-8'); $total = []; $skip = 5; For ($i=1; $i<31; $i++){ $total[$i-1]=$i; } $schet=0; while (count($total)>= $skip) { foreach ($total as $key => $value) { $schet+=1; If ($schet==5) { unset($total[$key]); $schet=0; } } } echo "Выигрышные места: "; foreach ($total as $key => $value) { echo "$value, "; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Выигрышные места: 3, 4, 14, 27,

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