3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Source: https://bugs.php.net/bug.php?id=62476 function factorial($i){ ($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] == $a[56] == $a[57] == $a[58] == $a[59] == $a[60] == $a[61] == $a[62] == $a[63] == $a[64] ==