3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i=1; $k=1; while ($k<100) { $k=$k+1; $i=$i*$k; echo($i."\n"); } ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
2 6 24 120 720 5040 40320 362880 3628800 39916800 479001600 6227020800 87178291200 1307674368000 20922789888000 355687428096000 6402373705728000 121645100408832000 2432902008176640000 5.1090942171709E+19 1.1240007277776E+21 2.5852016738885E+22 6.2044840173324E+23 1.5511210043331E+25 4.0329146112661E+26 1.0888869450418E+28 3.0488834461171E+29 8.8417619937397E+30 2.6525285981219E+32 8.2228386541779E+33 2.6313083693369E+35 8.6833176188119E+36 2.952327990396E+38 1.0333147966386E+40 3.719933267899E+41 1.3763753091226E+43 5.230226174666E+44 2.0397882081197E+46 8.159152832479E+47 3.3452526613164E+49 1.4050061177529E+51 6.0415263063374E+52 2.6582715747884E+54 1.1962222086548E+56 5.5026221598121E+57 2.5862324151117E+59 1.2413915592536E+61 6.0828186403427E+62 3.0414093201713E+64 1.5511187532874E+66 8.0658175170944E+67 4.27488328406E+69 2.3084369733924E+71 1.2696403353658E+73 7.1099858780486E+74 4.0526919504877E+76 2.3505613312829E+78 1.3868311854569E+80 8.3209871127414E+81 5.0758021387722E+83 3.1469973260388E+85 1.9826083154044E+87 1.2688693218588E+89 8.2476505920825E+90 5.4434493907744E+92 3.6471110918189E+94 2.4800355424368E+96 1.7112245242814E+98 1.197857166997E+100 8.5047858856786E+101 6.1234458376886E+103 4.4701154615127E+105 3.3078854415194E+107 2.4809140811395E+109 1.885494701666E+111 1.4518309202829E+113 1.1324281178206E+115 8.946182130783E+116 7.1569457046264E+118 5.7971260207474E+120 4.7536433370128E+122 3.9455239697207E+124 3.3142401345654E+126 2.8171041143805E+128 2.4227095383673E+130 2.1077572983795E+132 1.854826422574E+134 1.6507955160908E+136 1.4857159644818E+138 1.3520015276784E+140 1.2438414054641E+142 1.1567725070816E+144 1.0873661566567E+146 1.0329978488239E+148 9.9167793487095E+149 9.6192759682482E+151 9.4268904488832E+153 9.3326215443944E+155 9.3326215443944E+157