3v4l.org

run code in 300+ PHP versions simultaneously
<?php function microtime_float() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } echo microtime_float();

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)
7.2.00.0000.01618.97
7.1.70.0070.00716.88
7.1.60.0070.00719.82
7.1.50.0120.00916.96
7.1.00.0030.07722.47
7.0.200.0030.00316.75
7.0.140.0030.07721.97
7.0.60.0100.07320.00
7.0.50.0030.07317.86
7.0.40.0100.07719.96
7.0.30.0270.06320.20
7.0.20.0300.08320.27
7.0.10.0330.07020.05
7.0.00.0070.08020.16
5.6.280.0030.07720.78
5.6.210.0270.07020.57
5.6.200.0100.08318.22
5.6.190.0000.09720.57
5.6.180.4100.04320.58
5.6.170.0270.05020.55
5.6.160.0030.06020.46
5.6.150.0000.04318.18
5.6.140.0070.07718.23
5.6.130.0130.06018.17
5.6.120.0030.04021.01
5.6.110.0070.07321.11
5.6.100.0030.07021.14
5.6.90.0070.08321.01
5.6.80.0130.07720.39
5.6.70.0300.07720.40
5.5.350.0030.04020.41
5.5.340.0030.04318.08
5.5.330.0070.04320.21
5.5.320.0230.07320.19
5.5.310.0230.05720.56
5.5.300.0070.07017.95
5.5.290.0100.07718.02
5.5.280.0130.03720.80
5.5.270.0100.03720.77
5.5.260.0070.05020.79
5.5.250.0000.05320.61
5.5.240.0170.06320.29
5.4.450.0600.05019.63
5.4.440.0700.05719.30
5.4.430.0870.06019.47
5.4.420.0100.05019.16
5.4.410.0570.05019.25
5.4.400.1170.04318.62
5.4.390.1130.06018.78
5.4.380.0270.05318.61
5.4.370.0300.05018.61
5.4.360.0300.05718.80
5.4.350.0370.05318.72
5.4.340.0300.04718.78
5.4.320.0120.04112.50
5.4.310.0080.03512.50
5.4.300.0070.03912.51
5.4.290.0050.03912.50
5.4.280.0050.03612.40
5.4.270.0040.03912.39
5.4.260.0100.05318.81
5.4.250.0100.05718.80
5.4.240.0030.07318.75
5.4.230.0300.05018.95
5.4.220.0200.06718.66
5.4.210.0100.07718.84
5.4.200.0130.05318.66
5.4.190.0100.07318.83
5.4.180.0270.06718.66
5.4.170.0070.05718.79
5.4.160.0230.05718.99
5.4.150.0100.07018.75
5.4.140.0200.04716.48
5.4.130.0070.05716.38
5.4.120.0070.06016.63
5.4.110.0100.06316.48
5.4.100.0130.06016.39
5.4.90.0070.06016.49
5.4.80.0270.04716.56
5.4.70.0100.05716.32
5.4.60.0000.07016.37
5.4.50.0170.05316.39
5.4.40.0070.05716.52
5.4.30.0030.07016.46
5.4.20.0130.04716.46
5.4.10.0030.05316.35
5.4.00.0000.05716.03
5.3.290.0040.05412.80
5.3.280.0100.07014.41
5.3.270.0100.05314.60
5.3.260.0070.05714.61
5.3.250.0070.06014.68
5.3.240.0200.05314.66
5.3.230.0100.06314.81
5.3.220.0170.05014.74
5.3.210.0200.06014.64
5.3.200.0200.05314.55
5.3.190.0170.06314.70
5.3.180.0100.06314.69
5.3.170.0200.05314.64
5.3.160.0100.04714.40
5.3.150.0000.05314.39
5.3.140.0070.06314.52
5.3.130.0130.07014.52
5.3.120.0100.05314.52
5.3.110.0030.07314.63
5.3.100.0070.05014.19
5.3.90.0030.07014.00
5.3.80.0000.07314.20
5.3.70.0100.04314.08
5.3.60.0170.06013.82
5.3.50.0130.04714.03
5.3.40.0000.08013.91
5.3.30.0030.07313.97
5.3.20.0070.05013.72
5.3.10.0070.05013.64
5.3.00.0070.06713.63
5.2.170.0030.05711.04
5.2.160.0000.05311.11
5.2.150.0100.04311.23
5.2.140.0070.04711.31
5.2.130.0100.05011.08
5.2.120.0070.03711.09
5.2.110.0070.03711.26
5.2.100.0030.04711.16
5.2.90.0130.04711.09
5.2.80.0030.05711.15
5.2.70.0070.06711.04
5.2.60.0070.05711.01
5.2.50.0070.06711.11
5.2.40.0030.05310.96
5.2.30.0200.03010.94
5.2.20.0030.05010.92
5.2.10.0100.05011.02
5.2.00.0100.03710.77
5.1.60.0070.04010.09
5.1.50.0070.04310.11
5.1.40.0030.05010.18
5.1.30.0000.04710.50
5.1.20.0030.06010.33
5.1.10.0100.04010.26
5.1.00.0030.0509.98
5.0.50.0030.0308.45
5.0.40.0030.0378.44
5.0.30.0100.0408.21
5.0.20.0030.0408.38
5.0.10.0030.0378.23
5.0.00.0000.0438.36
4.4.90.0100.0237.27
4.4.80.0030.0207.27
4.4.70.0070.0237.27
4.4.60.0030.0307.27
4.4.50.0000.0337.27
4.4.40.0030.0437.27
4.4.30.0070.0237.27
4.4.20.0030.0207.27
4.4.10.0000.0337.27
4.4.00.0030.0407.27
4.3.110.0030.0207.27
4.3.100.0070.0277.27
4.3.90.0000.0277.27
4.3.80.0070.0377.27
4.3.70.0030.0277.27
4.3.60.0070.0237.27
4.3.50.0030.0237.27
4.3.40.0030.0437.27
4.3.30.0030.0277.27
4.3.20.0000.0307.27
4.3.10.0030.0277.27
4.3.00.0070.0176.76

preferences:
31.89 ms | 400 KiB | 5 Q