3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //factorial.php $n = 52; $factorial = array_product(range(1, $n)); echo $factorial . "\n"; //direct output printf("%g\n", $factorial); //force scientific notation
based on UsE0h
Output for 5.2.1 - 5.6.28, 7.0.0 - 7.1.0
8.0658175170944E+67 8.06582e+67
Output for hhvm-3.10.0 - 3.12.0
-8452693550620999680 -8.45269e+18
Output for 5.1.1 - 5.2.0
8.0658175170944E+67
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/WPhMZ on line 5
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function array_product() in /in/WPhMZ on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_product() in /in/WPhMZ on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: array_product() in /in/WPhMZ on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: array_product() in /in/WPhMZ on line 3