3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit, rfc.property-hooks
$a[55] == $a[56] == $a[57] == $a[58] == $a[59] == $a[60] == $a[61] == $a[62] == $a[63] == $a[64] ==

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