3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Enter your code here, enjoy! $s = 6; $n = 2; $k = 7; $z = 0; $i = 0; $j = $k; while ($j <= $s*$n) { while ($i <= (($j-$n)/$s)) { $fact1 = gmp_fact($n)/(gmp_fact($i)*gmp_fact($n-$i)); echo $fact1; //$fact2 = gmp_fact($j-$s*$i-1,$n-1); //$fact2 = gmp_fact($n-$i)/(gmp_fact($j-$s*$i-1)*gmp_fact($n-$i)); $fact2 = gmp_fact($j-$s*$i-1)/(gmp_fact($n-$i)*gmp_fact($n-$i)); //echo $fact2; $z = $z + pow(-1, $i) * $fact1 * $fact2; //$fact1 = gmp_fact(5); // 5 * 4 * 3 * 2 * 1 //$z = gmp_strval($z); $i++; } $j++; } //echo pow(gmp_init($z)*(1/$s),$n); ?>
Output for git.master, git.master_jit, rfc.property-hooks
12

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