3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Antes de PHP 8.1, se podían utilizar números decimales que PHP // convertía a enteros quitando la parte decimal. // Todavía se puede hacer, pero PHP genera errores E_DEPRECATED print "<p>" . intdiv(17.1, 3.1) . "</p>\n"; print "<p>" . 17.1 % 3.1 . "</p>\n"; ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.4.20.0070.01119.95
8.4.10.0030.00619.22
8.3.150.0070.01117.19
8.3.140.0060.00318.73
8.3.130.0000.00816.68
8.3.120.0100.00618.45
8.3.110.0060.00318.50
8.3.50.0030.00616.90
8.2.260.0100.00717.08
8.2.250.0080.00018.66
8.2.240.0060.00316.50
8.2.230.0030.00618.54
8.1.310.0110.00718.00
8.1.300.0230.00716.80
8.0.300.0270.00617.33

preferences:
42.09 ms | 403 KiB | 5 Q