3v4l.org

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