3v4l.org

run code in 300+ PHP versions simultaneously
<?php $datetime = new DateTime(); $datetime->add(new DateInterval("P1D")); echo $datetime->format('Y-m-d');

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.140.0080.00016.69
8.3.130.0050.00318.51
8.3.120.0030.00618.73
8.3.110.0030.00616.51
8.3.100.0000.01624.06
8.3.90.0070.00716.72
8.3.80.0090.00017.97
8.3.70.0060.01018.68
8.3.60.0070.01416.75
8.3.50.0100.01017.43
8.3.40.0190.00418.83
8.3.30.0070.00718.84
8.3.20.0000.00818.89
8.3.10.0000.00818.73
8.3.00.0080.00417.63
8.2.250.0110.00016.83
8.2.240.0070.00717.29
8.2.230.0040.00420.94
8.2.220.0060.00337.54
8.2.210.0110.00826.77
8.2.200.0070.00316.75
8.2.190.0190.00816.88
8.2.180.0040.01118.28
8.2.170.0070.00722.96
8.2.160.0130.00722.96
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00020.34
8.2.110.0050.00519.08
8.2.100.0070.00417.97
8.2.90.0000.00719.34
8.2.80.0040.00417.97
8.2.70.0080.00017.75
8.2.60.0050.00318.05
8.2.50.0080.00018.07
8.2.40.0060.00318.22
8.2.30.0040.00418.00
8.2.20.0070.00017.83
8.2.10.0040.00417.68
8.2.00.0000.00717.80
8.1.300.0120.00320.14
8.1.290.0090.00018.88
8.1.280.0090.01225.92
8.1.270.0050.00324.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.08
8.1.230.0060.00620.95
8.1.220.0000.00717.79
8.1.210.0000.00818.77
8.1.200.0050.00517.47
8.1.190.0040.00417.35
8.1.180.0030.00518.10
8.1.170.0040.00418.71
8.1.160.0040.00421.94
8.1.150.0080.00018.75
8.1.140.0040.00417.57
8.1.130.0080.00017.88
8.1.120.0000.00717.59
8.1.110.0080.00017.48
8.1.100.0070.00017.54
8.1.90.0000.00717.46
8.1.80.0040.00417.47
8.1.70.0040.00417.57
8.1.60.0060.00317.66
8.1.50.0030.00517.39
8.1.40.0000.00817.58
8.1.30.0050.00217.54
8.1.20.0000.00817.60
8.1.10.0050.00217.61
8.1.00.0040.00417.56
8.0.300.0000.00718.77
8.0.290.0000.00816.88
8.0.280.0000.00718.42
8.0.270.0030.00317.20
8.0.260.0070.00016.93
8.0.250.0080.00017.12
8.0.240.0040.00417.12
8.0.230.0030.00317.00
8.0.220.0030.00317.04
8.0.210.0030.00316.93
8.0.200.0000.00717.09
8.0.190.0000.00817.03
8.0.180.0040.00416.92
8.0.170.0070.00016.86
8.0.160.0030.00317.00
8.0.150.0080.00016.98
8.0.140.0100.00016.98
8.0.130.0050.00013.43
8.0.120.0000.00817.07
8.0.110.0050.00217.07
8.0.100.0050.00217.07
8.0.90.0070.00016.92
8.0.80.0030.01416.95
8.0.70.0040.00416.80
8.0.60.0000.00717.09
8.0.50.0040.00416.98
8.0.30.0130.01417.20
8.0.20.0140.00717.00
8.0.10.0000.00717.10
8.0.00.0120.00616.83
7.4.330.0000.00613.00
7.4.320.0030.00316.57
7.4.300.0040.00416.71
7.4.290.0030.00616.67
7.4.280.0000.00716.55
7.4.270.0040.00416.50
7.4.260.0050.00013.27
7.4.250.0000.00916.47
7.4.240.0040.00316.50
7.4.230.0040.00416.46
7.4.220.0120.01016.54
7.4.210.0030.01416.62
7.4.200.0070.00016.57
7.4.190.0040.00216.52
7.4.160.0070.01016.75
7.4.150.0120.00416.80
7.4.140.0130.00616.49
7.4.130.0110.00816.71
7.4.120.0140.00516.59
7.4.110.0090.00916.66
7.4.100.0100.01016.80
7.4.90.0050.01616.63
7.4.80.0110.01119.39
7.4.70.0140.00316.53
7.4.60.0130.01016.57
7.4.50.0000.00816.38
7.4.40.0060.00916.77
7.4.30.0030.01316.44
7.4.00.0130.00315.07
7.3.330.0070.00013.12
7.3.320.0030.00313.00
7.3.310.0000.00716.20
7.3.300.0030.00316.31
7.3.290.0120.00616.29
7.3.280.0080.00816.27
7.3.270.0120.00616.45
7.3.260.0130.00516.47
7.3.250.0080.01116.46
7.3.240.0060.01216.51
7.3.230.0080.00816.58
7.3.210.0070.01016.49
7.3.200.0180.00416.55
7.3.190.0130.00616.57
7.3.180.0110.00616.45
7.3.170.0070.00916.56
7.3.160.0120.00316.27
7.3.120.0090.00614.88
7.2.330.0090.01016.59
7.2.320.0150.00616.64
7.2.310.0040.01916.68
7.2.300.0120.00616.56
7.2.290.0100.00616.52
7.2.60.0080.00816.76
7.2.00.0000.01219.63
7.1.200.0070.00715.43
7.1.100.0060.01017.99
7.1.70.0060.00616.96
7.1.60.0070.01819.40
7.1.50.0090.00916.98
7.1.00.0070.07722.43
7.0.200.0220.00615.11
7.0.140.0030.07722.00
7.0.120.0000.07021.96
7.0.60.0030.08319.93
7.0.50.0070.08317.87
7.0.40.0030.06720.21
7.0.30.0370.06020.13
7.0.20.0230.04320.17
7.0.10.0270.03320.13
7.0.00.0030.05720.29
5.6.280.0000.07720.85
5.6.210.0100.04020.61
5.6.200.0070.06018.16
5.6.190.0030.05320.36
5.6.180.0230.04020.48
5.6.170.0370.05020.42
5.6.160.0100.08320.44
5.6.150.0170.04718.13
5.6.140.0030.08018.20
5.6.130.0100.04318.16
5.6.120.0030.08720.99
5.6.110.0070.08021.00
5.6.100.0130.08020.99
5.6.90.0070.06720.88
5.6.80.0000.06020.52
5.6.70.0300.07320.46
5.5.350.0000.06320.31
5.5.340.0170.04717.97
5.5.330.0130.07720.36
5.5.320.0170.04020.20
5.5.310.0330.07320.20
5.5.300.0030.07017.97
5.5.290.0070.08717.89
5.5.280.0070.03720.96
5.5.270.0070.08320.93
5.5.260.0200.06720.88
5.5.250.0100.07720.79
5.5.240.0030.08320.18
5.4.450.0070.07319.25
5.4.440.0070.03719.41
5.4.430.0100.03719.40
5.4.420.0070.04719.40
5.4.410.0000.06018.99
5.4.400.0100.07319.15
5.4.390.0070.07319.18
5.4.380.0070.04719.18
5.4.370.0100.06719.09
5.4.360.0130.07019.18
5.4.350.0030.05018.94
5.4.340.0130.05719.18
5.4.320.0070.04718.78
5.4.310.0070.07318.91
5.4.300.0030.05019.18
5.4.290.0030.08018.78
5.4.280.0130.06719.19
5.4.270.0100.06318.92
5.4.260.0070.07019.07
5.4.250.0100.07019.18
5.4.240.0030.04319.12
5.4.230.0100.07019.07
5.4.220.0070.03719.20
5.4.210.0030.03718.80
5.4.200.0130.06718.80
5.4.190.0030.03719.08
5.4.180.0070.03319.07
5.4.170.0030.04319.07
5.4.160.0070.08719.12
5.4.150.0170.06719.14
5.4.140.0030.05316.34
5.4.130.0070.06716.52
5.4.120.0030.07716.32
5.4.110.0100.06016.37
5.4.100.0000.04316.32
5.4.90.0030.03716.32
5.4.80.0100.06716.44
5.4.70.0030.04016.31
5.4.60.0000.04716.38
5.4.50.0070.05016.38
5.4.40.0130.07016.28
5.4.30.0070.06016.12
5.4.20.0100.06316.34
5.4.10.0070.05016.31
5.4.00.0030.07015.66
5.3.290.0030.04314.62
5.3.280.0030.04314.52
5.3.270.0130.06014.54
5.3.260.0030.05314.49
5.3.250.0070.07714.52
5.3.240.0030.05014.54
5.3.230.0070.07314.57
5.3.220.0030.07714.50
5.3.210.0030.08014.50
5.3.200.0130.06014.52
5.3.190.0130.07314.65
5.3.180.0030.05014.57
5.3.170.0070.05014.43
5.3.160.0000.05714.57
5.3.150.0070.05014.52
5.3.140.0070.03714.50
5.3.130.0130.05314.50
5.3.120.0100.05314.34
5.3.110.0130.06014.34
5.3.100.0030.08013.86
5.3.90.0070.04713.95
5.3.80.0070.05014.03
5.3.70.0070.07314.03
5.3.60.0030.06714.02
5.3.50.0000.04013.93
5.3.40.0070.03713.91
5.3.30.0100.06314.00
5.3.20.0030.04013.62
5.3.10.0000.04013.58
5.3.00.0030.05013.42
5.2.170.0000.06711.13
5.2.160.0000.04311.09
5.2.150.0030.03011.13
5.2.140.0100.05711.15
5.2.130.0030.03011.07
5.2.120.0000.03311.06
5.2.110.0030.04710.99
5.2.100.0030.03711.26
5.2.90.0030.06710.98
5.2.80.0070.06011.09
5.2.70.0070.04011.03
5.2.60.0030.04010.98
5.2.50.0100.03310.98
5.2.40.0000.03311.14
5.2.30.0100.06010.93
5.2.20.0030.03310.86
5.2.10.0070.04710.82
5.2.00.0100.04710.72
5.1.60.0030.0409.92
5.1.50.0000.0379.89
5.1.40.0000.0309.81
5.1.30.0100.02010.34
5.1.20.0000.04710.30
5.1.10.0030.02710.21
5.1.00.0000.03310.12
5.0.50.0030.0408.54
5.0.40.0000.0278.43
5.0.30.0000.0578.43
5.0.20.0000.0238.43
5.0.10.0070.0138.43
5.0.00.0070.0308.43
4.4.90.0030.0278.43
4.4.80.0030.0338.43
4.4.70.0000.0178.43
4.4.60.0000.0208.43
4.4.50.0000.0208.43
4.4.40.0030.0278.43
4.4.30.0000.0208.43
4.4.20.0000.0208.43
4.4.10.0000.0208.43
4.4.00.0000.0438.43
4.3.110.0030.0308.43
4.3.100.0070.0138.43
4.3.90.0000.0238.43
4.3.80.0000.0538.43
4.3.70.0000.0208.43
4.3.60.0070.0278.43
4.3.50.0030.0338.43
4.3.40.0000.0408.43
4.3.30.0000.0378.43
4.3.20.0070.0308.43
4.3.10.0030.0238.43
4.3.00.0000.0208.43

preferences:
69.98 ms | 403 KiB | 5 Q