3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Source: https://bugs.php.net/bug.php?id=62476 function factorial($i){ return ($i==1)?1:$i*factorial($i-1); } $a = array(); for ($d=55; $d<65; $d++) { $a[$d] = $d; } foreach($a as $b => $c){ echo "\$a[$b] == " . factorial($c) . "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
$a[55] == 1.2696403353658E+73 $a[56] == 7.1099858780486E+74 $a[57] == 4.0526919504877E+76 $a[58] == 2.3505613312829E+78 $a[59] == 1.3868311854569E+80 $a[60] == 8.3209871127414E+81 $a[61] == 5.0758021387722E+83 $a[62] == 3.1469973260388E+85 $a[63] == 1.9826083154044E+87 $a[64] == 1.2688693218588E+89

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