3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
$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