3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 1; for($i=1;$i<50;$i++){ $x *=$i; echo $i ." : " .$x."\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
1 : 1 2 : 2 3 : 6 4 : 24 5 : 120 6 : 720 7 : 5040 8 : 40320 9 : 362880 10 : 3628800 11 : 39916800 12 : 479001600 13 : 6227020800 14 : 87178291200 15 : 1307674368000 16 : 20922789888000 17 : 355687428096000 18 : 6402373705728000 19 : 121645100408832000 20 : 2432902008176640000 21 : 5.1090942171709E+19 22 : 1.1240007277776E+21 23 : 2.5852016738885E+22 24 : 6.2044840173324E+23 25 : 1.5511210043331E+25 26 : 4.0329146112661E+26 27 : 1.0888869450418E+28 28 : 3.0488834461171E+29 29 : 8.8417619937397E+30 30 : 2.6525285981219E+32 31 : 8.2228386541779E+33 32 : 2.6313083693369E+35 33 : 8.6833176188119E+36 34 : 2.952327990396E+38 35 : 1.0333147966386E+40 36 : 3.719933267899E+41 37 : 1.3763753091226E+43 38 : 5.230226174666E+44 39 : 2.0397882081197E+46 40 : 8.159152832479E+47 41 : 3.3452526613164E+49 42 : 1.4050061177529E+51 43 : 6.0415263063374E+52 44 : 2.6582715747884E+54 45 : 1.1962222086548E+56 46 : 5.5026221598121E+57 47 : 2.5862324151117E+59 48 : 1.2413915592536E+61 49 : 6.0828186403427E+62

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:
41.24 ms | 403 KiB | 8 Q