3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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 4.3.0 - 7.1.0
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