3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo (new Datetime())->format('u'); print PHP_EOL; echo microtime(true); print PHP_EOL; echo hrtime(true); print PHP_EOL; echo date('u'); print PHP_EOL;

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.80.0250.01219.46
8.4.70.0290.00619.50
8.4.60.0410.00417.96
8.4.50.0400.00817.53
8.4.40.0390.00917.55
8.4.30.0400.01317.79
8.4.20.0450.00917.41
8.4.10.0330.00417.71
8.3.220.0170.00816.97
8.3.210.0250.00716.97
8.3.200.0390.00916.97
8.3.190.0270.00616.97
8.3.180.0220.00416.97
8.3.170.0400.01116.97
8.3.160.0500.00816.97
8.3.150.0390.00716.97
8.3.140.0380.01316.97
8.3.130.0330.00916.97
8.3.120.0300.00816.97
8.3.110.0290.00916.97
8.3.100.0410.00716.97
8.3.90.0410.00916.97
8.3.80.0460.00516.97
8.3.70.0400.00716.97
8.3.60.0270.00716.97
8.3.50.0240.00716.97
8.3.40.0360.01317.64
8.3.30.0320.01017.28
8.3.20.0430.01117.44
8.3.10.0150.00517.54
8.3.00.0100.00417.66
8.2.280.0130.00516.97
8.2.270.0210.00716.97
8.2.260.0160.00316.97
8.2.250.0170.00316.97
8.2.240.0360.00316.97
8.2.230.0360.00916.97
8.2.220.0210.00716.97
8.2.210.0200.00716.97
8.2.200.0140.00516.97
8.2.190.0190.00216.97
8.2.180.0260.00616.97
8.2.170.0330.00717.78
8.2.160.0250.00417.63
8.2.150.0400.00617.63
8.2.140.0400.00517.50
8.2.130.0380.01117.34
8.2.120.0340.01017.54
8.2.110.0400.00517.61
8.2.100.0370.00917.48
8.2.90.0370.00717.78
8.2.80.0380.00617.70
8.2.70.0300.01317.70
8.2.60.0360.00717.63
8.2.50.0350.00917.54
8.2.40.0340.01017.50
8.2.30.0410.00817.55
8.2.20.0330.00817.52
8.2.10.0390.00717.55
8.2.00.0210.00417.70

preferences:
46.61 ms | 738 KiB | 5 Q