3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dateWithoutZeros = new DateTime('2014-03-12'); $compWithoutZeros = new DateTime('2014-03-11'); $dateWithZeros = new DateTime('2014-03-12 00:00:00'); $compWithZeros = new DateTime('2014-03-11 00:00:00'); while ($dateWithZeros >= new DateTime('2014-01-01 00:00:00')) { $diffWithZeros = $compWithZeros->diff($dateWithZeros); $diffWithoutZeros = $compWithoutZeros->diff($dateWithoutZeros); echo $compWithZeros->format('Y-m-d H:i:s'), ' - ', $dateWithZeros->format('Y-m-d H:i:s'), ' = ', $diffWithZeros->format('%r%Y-%M-%D %H:%I:%S'), ' = ', $diffWithZeros->format('%r%a'), " days\n"; echo $compWithoutZeros->format('Y-m-d H:i:s'), ' - ', $dateWithoutZeros->format('Y-m-d H:i:s'), ' = ', $diffWithoutZeros->format('%r%Y-%M-%D %H:%I:%S'), ' = ', $diffWithoutZeros->format('%r%a'), " days\n"; $dateWithoutZeros->sub(new DateInterval('P1D')); $dateWithZeros->sub(new DateInterval('P1D')); }

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.40.0040.01418.79
8.3.30.0130.00319.22
8.3.20.0070.00320.34
8.3.10.0060.00322.14
8.3.00.0090.00022.57
8.2.170.0070.01122.96
8.2.160.0070.01019.07
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0060.00319.36
8.2.110.0050.00522.11
8.2.100.0070.00719.70
8.2.90.0040.00419.17
8.2.80.0030.00618.16
8.2.70.0040.00717.75
8.2.60.0090.00018.05
8.2.50.0030.00718.07
8.2.40.0060.00318.16
8.2.30.0030.00618.06
8.2.20.0050.00517.79
8.2.10.0030.00617.88
8.2.00.0030.00617.77
8.1.270.0070.00322.02
8.1.260.0060.00326.35
8.1.250.0090.00028.09
8.1.240.0070.00323.87
8.1.230.0100.00319.04
8.1.220.0000.00917.74
8.1.210.0030.00618.77
8.1.200.0040.00717.50
8.1.190.0030.00617.52
8.1.180.0040.00418.62
8.1.170.0050.00518.68
8.1.160.0040.00422.06
8.1.150.0060.00318.77
8.1.140.0090.00017.54
8.1.130.0080.00017.96
8.1.120.0000.00817.68
8.1.110.0090.00317.66
8.1.100.0080.00017.58
8.1.90.0040.00417.56
8.1.80.0040.00417.74
8.1.70.0030.00617.57
8.1.60.0050.00517.71
8.1.50.0000.00917.55
8.1.40.0060.00317.53
8.1.30.0000.01017.73
8.1.20.0000.00917.71
8.1.10.0000.00917.72
8.1.00.0030.00617.70
8.0.300.0060.00318.77
8.0.290.0000.00917.30
8.0.280.0030.00518.62
8.0.270.0000.00817.20
8.0.260.0040.00417.05
8.0.250.0090.00017.08
8.0.240.0030.00617.09
8.0.230.0000.00817.16
8.0.220.0060.00317.14
8.0.210.0030.00517.15
8.0.200.0040.00417.24
8.0.190.0070.00317.21
8.0.180.0000.00817.11
8.0.170.0000.00917.12
8.0.160.0060.00317.04
8.0.150.0040.00416.97
8.0.140.0030.00617.00
8.0.130.0000.00713.52
8.0.120.0030.00617.11
8.0.110.0060.00317.14
8.0.100.0030.00617.11
8.0.90.0000.00917.07
8.0.80.0090.00917.07
8.0.70.0000.00917.10
8.0.60.0060.00317.08
8.0.50.0050.00516.97
8.0.30.0130.01317.24
8.0.20.0140.01317.41
8.0.10.0000.00917.18
8.0.00.0160.01417.09
7.4.330.0000.00615.11
7.4.320.0040.00416.57
7.4.300.0030.00516.75
7.4.290.0040.00416.76
7.4.280.0000.01016.59
7.4.270.0040.00416.64
7.4.260.0000.00916.66
7.4.250.0060.00316.74
7.4.240.0050.00316.69
7.4.230.0050.00516.76
7.4.220.0070.01816.65
7.4.210.0070.01316.73
7.4.200.0030.00616.70
7.4.190.0030.00616.71
7.4.160.0140.01416.75
7.4.150.0130.01017.40
7.4.140.0140.01317.86
7.4.130.0110.01216.65
7.4.120.0130.01316.61
7.4.110.0140.01116.50
7.4.100.0100.02116.71
7.4.90.0040.02116.77
7.4.80.0090.01719.39
7.4.70.0180.00716.63
7.4.60.0090.01316.75
7.4.50.0060.00316.42
7.4.40.0130.00722.77
7.4.30.0150.01216.81
7.4.00.0110.00715.08
7.3.330.0030.00313.19
7.3.320.0000.00713.27
7.3.310.0000.01016.44
7.3.300.0090.00016.27
7.3.290.0090.01616.37
7.3.280.0110.01116.35
7.3.270.0180.00917.40
7.3.260.0120.01816.48
7.3.250.0110.01416.52
7.3.240.0030.02216.52
7.3.230.0070.01916.57
7.3.210.0150.00616.73
7.3.200.0080.01619.39
7.3.190.0100.02016.44
7.3.180.0190.00316.46
7.3.170.0120.00916.71
7.3.160.0150.00616.55
7.3.120.0000.01614.93
7.3.10.0070.00516.71
7.3.00.0040.01316.61
7.2.330.0200.00716.49
7.2.320.0130.01916.44
7.2.310.0150.00616.89
7.2.300.0150.01216.69
7.2.290.0120.01216.75
7.2.130.0070.00716.96
7.2.120.0090.00816.90
7.2.110.0060.01116.84
7.2.100.0080.01016.93
7.2.90.0140.00316.94
7.2.80.0050.00916.97
7.2.70.0110.00616.88
7.2.60.0090.00917.00
7.2.50.0070.01117.01
7.2.40.0130.00717.16
7.2.30.0140.00517.07
7.2.20.0090.01416.94
7.2.10.0110.01016.75
7.2.00.0040.01016.94
7.1.250.0130.00715.89
7.1.70.0000.00817.33
7.1.60.0070.02019.82
7.1.50.0070.02016.75
7.1.00.0030.03322.36
7.0.200.0080.00417.13
7.0.140.0000.08022.09
7.0.110.0170.07020.13
7.0.100.0100.08720.04
7.0.90.0070.07319.98
7.0.80.0000.04320.07
7.0.70.0170.05020.10
7.0.60.0030.05320.04
7.0.50.0170.06719.98
7.0.40.0130.07319.66
7.0.30.0100.08319.82
7.0.20.0070.07319.75
7.0.10.0030.05019.67
7.0.00.0030.04019.64
5.6.280.0070.07721.11
5.6.260.0100.06320.52
5.6.250.0130.08020.59
5.6.240.0100.04720.56
5.6.230.0070.05720.48
5.6.220.0070.08720.68
5.6.210.0030.04720.63
5.6.200.0070.07020.65
5.6.190.0130.07020.48
5.6.180.0170.07720.48
5.6.170.0130.08020.71
5.6.160.0070.08020.63
5.6.150.0070.04720.62
5.6.140.0070.07720.64
5.6.130.0030.07720.66
5.6.120.0130.07320.66
5.6.110.0230.02720.63
5.6.100.0070.04320.63
5.6.90.0070.07320.61
5.6.80.0100.06319.95
5.6.70.0030.08320.18
5.6.60.0000.07720.06
5.6.50.0030.04319.95
5.6.40.0000.08720.05
5.6.30.0100.03719.98
5.6.20.0070.03719.96
5.6.10.0070.08020.22
5.6.00.0070.03720.00
5.5.380.0100.08017.50
5.5.370.0130.03317.63
5.5.360.0100.08317.59
5.5.350.0070.04717.56
5.5.340.0170.07318.13
5.5.330.0130.07317.86
5.5.320.0030.08717.85
5.5.310.0130.06717.84
5.5.300.0200.06018.10
5.5.290.0130.03717.76
5.5.280.0100.08318.12
5.5.270.0030.08318.16
5.5.260.0070.04717.75
5.5.250.0000.08317.66
5.5.240.0070.03717.25
5.5.230.0070.03317.22
5.5.220.0070.03017.53
5.5.210.0100.03317.52
5.5.200.0070.09017.54
5.5.190.0030.08717.38
5.5.180.0070.04017.60
5.5.160.0030.07317.48
5.5.150.0100.07717.12
5.5.140.0070.06017.45
5.5.130.0030.04317.46
5.5.120.0030.06717.50
5.5.110.0130.07317.43
5.5.100.0100.04017.42
5.5.90.0130.07017.35
5.5.80.0000.04017.41
5.5.70.0070.07317.37
5.5.60.0130.04317.11
5.5.50.0100.07017.41
5.5.40.0000.04017.08
5.5.30.0000.04317.08
5.5.20.0030.04017.49
5.5.10.0000.05017.14
5.5.00.0100.07017.10
5.4.450.0030.07319.35
5.4.440.0130.07319.51
5.4.430.0100.07719.42
5.4.420.0000.04319.35
5.4.410.0130.06719.13
5.4.400.0100.07318.97
5.4.390.0030.06718.93
5.4.380.0030.06719.12
5.4.370.0030.08019.19
5.4.360.0030.04019.12
5.4.350.0100.07319.11
5.4.340.0100.07019.25
5.4.320.0130.07319.12
5.4.310.0000.04318.95
5.4.300.0030.04018.95
5.4.290.0100.03019.02
5.4.280.0170.06718.95
5.4.270.0070.05319.25
5.4.260.0000.04719.00
5.4.250.0170.07018.94
5.4.240.0000.08019.09
5.4.230.0000.04019.11
5.4.220.0070.07019.11
5.4.210.0100.05318.94
5.4.200.0070.06319.00
5.4.190.0100.08019.11
5.4.180.0130.06019.15
5.4.170.0030.08019.11
5.4.160.0000.07719.25
5.4.150.0130.07318.93
5.4.140.0030.07716.33
5.4.130.0070.07716.52
5.4.120.0030.07316.52
5.4.110.0100.07316.37
5.4.100.0070.07716.46
5.4.90.0170.05316.18
5.4.80.0130.05316.52
5.4.70.0070.08016.39
5.4.60.0030.03716.22
5.4.50.0030.05716.43
5.4.40.0030.06316.44
5.4.30.0100.07716.15
5.4.20.0100.05316.51
5.4.10.0070.03316.53
5.4.00.0070.06016.03
5.3.290.0070.06014.57
5.3.280.0170.06014.70
5.3.270.0100.07314.65
5.3.260.0070.04314.61
5.3.250.0000.05314.69
5.3.240.0100.06714.68
5.3.230.0000.08014.41
5.3.220.0070.07714.46
5.3.210.0030.03714.45
5.3.200.0100.06314.65
5.3.190.0100.07714.59
5.3.180.0100.05714.48
5.3.170.0070.03314.57
5.3.160.0070.07314.60
5.3.150.0070.07014.50
5.3.140.0070.07714.58
5.3.130.0130.06714.62
5.3.120.0100.08014.45
5.3.110.0000.05314.55
5.3.100.0030.08313.99
5.3.90.0030.03713.94
5.3.80.0070.07713.86
5.3.70.0000.05313.95
5.3.60.0000.04313.80
5.3.50.0130.06313.89
5.3.40.0030.07713.97
5.3.30.0100.03013.77
5.3.20.0100.06313.55
5.3.10.0130.02713.51
5.3.00.0070.07013.57
5.2.170.0030.06712.44
5.2.160.0130.04312.44
5.2.150.0000.05012.44
5.2.140.0030.06012.44
5.2.130.0070.04012.44
5.2.120.0030.06012.44
5.2.110.0070.05712.44
5.2.100.0030.05712.44
5.2.90.0070.05712.44
5.2.80.0030.06712.44
5.2.70.0000.03312.44
5.2.60.0000.05012.44
5.2.50.0030.03012.44
5.2.40.0100.04012.44
5.2.30.0070.02712.44
5.2.20.0030.05312.44
5.2.10.0070.03712.44
5.2.00.0070.03012.44
5.1.60.0000.02312.44
5.1.50.0070.02712.44
5.1.40.0070.03012.44
5.1.30.0000.06012.44
5.1.20.0070.02712.44
5.1.10.0000.05312.44
5.1.00.0030.05012.44
5.0.50.0030.05012.44
5.0.40.0030.05312.44
5.0.30.0000.03712.44
5.0.20.0030.04312.44
5.0.10.0000.02312.44
5.0.00.0100.06012.44
4.4.90.0100.03012.44
4.4.80.0000.02312.44
4.4.70.0000.01712.44
4.4.60.0000.03012.44
4.4.50.0000.03712.44
4.4.40.0000.02312.44
4.4.30.0000.03012.44
4.4.20.0070.02712.44
4.4.10.0000.01712.44
4.4.00.0000.05312.44
4.3.110.0000.03312.44
4.3.100.0000.03012.44
4.3.90.0070.01012.44
4.3.80.0070.04012.44
4.3.70.0000.03312.44
4.3.60.0030.02012.44
4.3.50.0000.02012.44
4.3.40.0030.02012.44
4.3.30.0000.03012.44
4.3.20.0000.02312.44
4.3.10.0030.03312.44
4.3.00.0030.03312.44

preferences:
65.27 ms | 400 KiB | 5 Q