3v4l.org

run code in 300+ PHP versions simultaneously
<?php $code = "03255000000"; $len = strlen($code); $i = 0; $sum = 0; do { $r = $i+1; $sum += $code[$i]*$r; echo "$r:$sum<br>"; $i++; }while($i < $len); echo (string)($sum%11); ?>
Output for git.master, git.master_jit, rfc.property-hooks
1:0<br>2:6<br>3:12<br>4:32<br>5:57<br>6:57<br>7:57<br>8:57<br>9:57<br>10:57<br>11:57<br>2

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