3v4l.org

run code in 300+ PHP versions simultaneously
<?php $january = new DateTime('2010-01-01'); $february = new DateTime('2010-02-01'); $interval = $february->diff($january); // %a will output the total number of days. // While %d will only output the number of days not already covered by the // month. if ($interval->format('%a')/30 > 1) { echo $interval->format('%m month, %d days'); } else { echo $interval->format('%a total days')."\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.3.60.0060.01218.53
8.3.50.0130.00721.97
8.3.40.0110.00418.67
8.3.30.0050.00819.04
8.3.20.0040.00420.35
8.3.10.0050.00321.72
8.3.00.0090.00019.38
8.2.180.0160.00618.48
8.2.170.0070.01422.96
8.2.160.0130.00720.28
8.2.150.0040.00424.18
8.2.140.0070.01124.66
8.2.130.0140.00326.16
8.2.120.0070.01320.75
8.2.110.0030.00620.35
8.2.100.0040.00818.00
8.2.90.0040.00419.30
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0030.00618.04
8.2.50.0080.00018.07
8.2.40.0090.00318.16
8.2.30.0070.00018.13
8.2.20.0000.00717.84
8.2.10.0000.00918.13
8.2.00.0040.00418.09
8.1.280.0100.01025.92
8.1.270.0040.00420.32
8.1.260.0130.00026.35
8.1.250.0090.00028.09
8.1.240.0000.00922.13
8.1.230.0040.00720.83
8.1.220.0000.00817.77
8.1.210.0080.00018.77
8.1.200.0070.00716.98
8.1.190.0080.00017.48
8.1.180.0000.00918.10
8.1.170.0040.00418.65
8.1.160.0030.00521.95
8.1.150.0000.00818.82
8.1.140.0040.00417.48
8.1.130.0070.00017.74
8.1.120.0000.00717.55
8.1.110.0000.00717.56
8.1.100.0030.00517.49
8.1.90.0000.00817.52
8.1.80.0070.00017.51
8.1.70.0040.00417.62
8.1.60.0040.00417.55
8.1.50.0040.00417.60
8.1.40.0030.00517.61
8.1.30.0040.00417.79
8.1.20.0040.00417.67
8.1.10.0050.00317.70
8.1.00.0040.00417.64
8.0.300.0040.00418.77
8.0.290.0060.00316.88
8.0.280.0030.00318.52
8.0.270.0030.00316.93
8.0.260.0030.00317.24
8.0.250.0000.00717.12
8.0.240.0000.00717.15
8.0.230.0000.00717.17
8.0.220.0040.00417.03
8.0.210.0000.00817.16
8.0.200.0030.00317.08
8.0.190.0040.00417.06
8.0.180.0040.00417.02
8.0.170.0000.00917.07
8.0.160.0070.00016.89
8.0.150.0030.00317.05
8.0.140.0000.00816.98
8.0.130.0030.00313.48
8.0.120.0070.00016.88
8.0.110.0040.00417.07
8.0.100.0040.00416.98
8.0.90.0040.00416.86
8.0.80.0030.01316.95
8.0.70.0030.00516.85
8.0.60.0000.00816.85
8.0.50.0040.00416.93
8.0.30.0080.01017.20
8.0.20.0090.00917.40
8.0.10.0050.00317.11
8.0.00.0110.01117.06
7.4.330.0030.00315.10
7.4.320.0000.00616.70
7.4.300.0000.00616.52
7.4.290.0020.00516.64
7.4.280.0030.00616.67
7.4.270.0000.00816.59
7.4.260.0030.00316.47
7.4.250.0040.00416.61
7.4.240.0050.00216.60
7.4.230.0030.00316.47
7.4.220.0060.01216.57
7.4.210.0050.00916.64
7.4.200.0030.00316.57
7.4.160.0080.00616.39
7.4.150.0100.00717.40
7.4.140.0130.00817.86
7.4.130.0100.01116.56
7.4.120.0120.00616.62
7.4.110.0100.00716.76
7.4.100.0060.01716.59
7.4.90.0080.01116.66
7.4.80.0030.01419.39
7.4.70.0090.00916.63
7.4.60.0090.00716.59
7.4.50.0070.00316.64
7.4.40.0090.00916.50
7.4.30.0100.00716.52
7.4.00.0000.01115.01
7.3.330.0050.00013.23
7.3.320.0060.00013.16
7.3.310.0030.00316.18
7.3.300.0040.00416.35
7.3.290.0040.01316.35
7.3.280.0100.00916.34
7.3.270.0100.00717.40
7.3.260.0170.00016.51
7.3.250.0130.00616.48
7.3.240.0100.00716.70
7.3.230.0030.01416.78
7.3.210.0110.00716.24
7.3.200.0090.01519.39
7.3.190.0030.01316.64
7.3.180.0070.01016.56
7.3.170.0130.00316.65
7.3.160.0100.00716.24
7.3.10.0060.00616.75
7.3.00.0080.00416.80
7.2.330.0110.00616.61
7.2.320.0100.01016.88
7.2.310.0060.01516.55
7.2.300.0090.00916.81
7.2.290.0140.00816.64
7.2.130.0040.00717.00
7.2.120.0140.00016.88
7.2.110.0070.00716.77
7.2.100.0030.01016.84
7.2.90.0030.01416.98
7.2.80.0090.00916.98
7.2.70.0080.00617.07
7.2.60.0140.01116.82
7.2.50.0220.00316.91
7.2.40.0100.01016.71
7.2.30.0120.00916.80
7.2.20.0180.00416.67
7.2.10.0230.00316.83
7.2.00.0100.00718.17
7.1.250.0100.00715.63
7.1.100.0330.00716.29
7.1.70.0000.00717.27
7.1.60.0090.01619.59
7.1.50.0290.01616.70
7.1.00.0070.07322.37
7.0.200.0160.00316.91
7.0.60.0100.07719.98
7.0.50.0100.03717.84
7.0.40.0130.03320.23
7.0.30.0570.05720.21
7.0.20.0400.05320.04
7.0.10.0200.03720.18
7.0.00.0130.06720.17
5.6.280.0070.06720.90
5.6.210.0130.03720.46
5.6.200.0070.07718.19
5.6.190.0100.08320.41
5.6.180.3330.05020.57
5.6.170.0270.07720.35
5.6.160.0030.09320.37
5.6.150.0000.04318.20
5.6.140.0000.05718.13
5.6.130.0030.05718.11
5.6.120.0030.04021.14
5.6.110.0070.08020.98
5.6.100.0100.07320.93
5.6.90.0030.04321.12
5.6.80.0100.08020.45
5.6.70.1930.04020.50
5.5.350.0230.07720.42
5.5.340.0070.05317.98
5.5.330.0000.06020.19
5.5.320.0300.04020.32
5.5.310.0230.05720.18
5.5.300.0000.06318.02
5.5.290.0100.07718.01
5.5.280.0030.06720.82
5.5.270.0000.06720.79
5.5.260.0030.05720.88
5.5.250.0070.09020.68
5.5.240.0100.07320.18
5.4.450.0170.05319.39
5.4.440.0500.04019.49
5.4.430.0170.08019.04
5.4.420.0170.07719.39
5.4.410.0170.06319.22
5.4.400.0130.05719.26
5.4.390.0170.05319.09
5.4.380.0100.06019.01
5.4.370.0230.04318.86
5.4.360.0130.05719.25
5.4.350.0170.05319.09
5.4.340.0070.06718.94
5.4.320.0130.05719.21
5.4.310.0170.05318.74
5.4.300.0230.04718.83
5.4.290.0200.05319.09
5.4.280.0330.04019.21
5.4.270.0270.04318.74
5.4.260.0130.05719.10
5.4.250.0230.04719.25
5.4.240.0130.06018.99
5.4.230.0470.05718.93
5.4.220.0230.06018.99
5.4.210.0070.06718.73
5.4.200.0200.04716.88
5.4.190.0130.05718.93
5.4.180.0200.06018.92
5.4.170.0270.04719.18
5.4.160.0230.04718.88
5.4.150.0170.06018.92
5.4.140.0070.06316.39
5.4.130.0230.05716.59
5.4.120.0070.05716.54
5.4.110.0100.05016.45
5.4.100.0230.04016.45
5.4.90.0170.05016.25
5.4.80.0100.05316.53
5.4.70.0230.04316.23
5.4.60.0230.05316.17
5.4.50.0030.06016.50
5.4.40.0070.06016.46
5.4.30.0130.05316.16
5.4.20.0200.04716.39
5.4.10.0130.05316.36
5.4.00.0030.06015.95
5.3.290.0030.06314.56
5.3.280.0170.04314.46
5.3.270.0230.04314.52
5.3.260.0200.04714.58
5.3.250.0130.05014.58
5.3.240.0100.05314.60
5.3.230.0100.05314.46
5.3.220.0100.05014.40
5.3.210.0100.06014.59
5.3.200.0130.05014.57
5.3.190.0130.05014.50
5.3.180.0130.05014.45
5.3.170.0170.04714.45
5.3.160.0200.04714.59
5.3.150.0230.04314.48
5.3.140.0170.06314.39
5.3.130.0100.07714.46
5.3.120.0230.04714.38
5.3.110.0170.05314.39
5.3.100.0270.04014.08
5.3.90.0270.04014.04
5.3.80.0130.05013.84
5.3.70.0200.04013.88
5.3.60.0170.04713.87
5.3.50.0070.05713.88
5.3.40.0200.04313.86
5.3.30.0170.05013.79
5.3.20.0270.05313.53
5.3.10.0130.05313.63
5.3.00.0200.04313.46
5.2.170.0130.04011.06
5.2.160.0100.04011.14
5.2.150.0100.04010.99
5.2.140.0130.04011.22
5.2.130.0100.04011.09
5.2.120.0130.03710.99
5.2.110.0000.05010.93
5.2.100.0200.04310.98
5.2.90.0100.04311.02
5.2.80.0170.03711.01
5.2.70.0070.04711.11
5.2.60.0000.05310.94
5.2.50.0130.03711.02
5.2.40.0100.04310.99
5.2.30.0200.03710.76
5.2.20.0130.04310.87
5.2.10.0100.04010.95
5.2.00.0100.04310.74
5.1.60.0100.03310.09
5.1.50.0070.03710.07
5.1.40.0170.0279.95
5.1.30.0100.03310.22
5.1.20.0070.04010.25
5.1.10.0100.03310.14
5.1.00.0130.03010.05
5.0.50.0130.0278.47
5.0.40.0100.0238.33
5.0.30.0100.0408.25
5.0.20.0100.0278.04
5.0.10.0070.0278.32
5.0.00.0000.0478.15
4.4.90.0030.0235.91
4.4.80.0100.0175.75
4.4.70.0100.0175.82
4.4.60.0100.0175.80
4.4.50.0100.0175.74
4.4.40.0030.0375.85
4.4.30.0030.0205.78
4.4.20.0070.0205.82
4.4.10.0000.0275.91
4.4.00.0000.0435.77
4.3.110.0100.0175.79
4.3.100.0030.0235.68
4.3.90.0070.0205.83
4.3.80.0030.0405.66
4.3.70.0100.0175.66
4.3.60.0000.0375.74
4.3.50.0030.0335.75
4.3.40.0030.0405.74
4.3.30.0030.0204.42
4.3.20.0000.0234.54
4.3.10.0000.0234.35
4.3.00.0030.01015.54

preferences:
83.29 ms | 401 KiB | 5 Q