3v4l.org

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