3v4l.org

run code in 300+ PHP versions simultaneously
<?php const DB_DATETIME_FORMAT = 'Y-m-d H:i:s'; $gmtTimezone = new DateTimeZone("UTC"); $Now = new createFromFormat(DB_DATETIME_FORMAT, 'tomorrow 03:00:00', $gmtTimezone); print_r($Now, true); $Duration = new DateInterval('PT1M'); // 1minute $Now->add( $Duration ); print_r($Now, true); $Duration = new DateInterval('P1D'); // 1Day $Now->add( $Duration ); print_r($Now, true); // 2014-05-12

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.0070.00718.79
8.3.30.0110.00418.97
8.3.20.0090.00020.34
8.3.10.0000.00823.55
8.3.00.0000.00719.79
8.2.170.0080.00819.04
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0030.00520.94
8.2.120.0030.00526.35
8.2.110.0030.00620.53
8.2.100.0130.00017.86
8.2.90.0050.00319.25
8.2.80.0030.00617.97
8.2.70.0040.00417.63
8.2.60.0040.00417.91
8.2.50.0040.00418.10
8.2.40.0080.00022.16
8.2.30.0070.00020.68
8.2.20.0040.00417.92
8.2.10.0050.00217.96
8.2.00.0020.00518.20
8.1.270.0090.00620.16
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00620.88
8.1.230.0040.00819.29
8.1.220.0090.00017.74
8.1.210.0030.00518.77
8.1.200.0060.00617.48
8.1.190.0080.00017.47
8.1.180.0040.00418.10
8.1.170.0000.00918.63
8.1.160.0050.00220.79
8.1.150.0070.00018.82
8.1.140.0080.00019.62
8.1.130.0080.00017.77
8.1.120.0000.00717.55
8.1.110.0040.00417.50
8.1.100.0060.00317.48
8.1.90.0040.00417.60
8.1.80.0020.00517.52
8.1.70.0000.00717.39
8.1.60.0040.00417.51
8.1.50.0080.00017.57
8.1.40.0040.00417.45
8.1.30.0040.00417.57
8.1.20.0080.00017.68
8.1.10.0030.00617.61
8.1.00.0000.00817.52
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0070.00018.31
8.0.270.0030.00317.26
8.0.260.0030.00317.28
8.0.250.0030.00316.93
8.0.240.0000.00717.11
8.0.230.0040.00417.11
8.0.220.0070.00017.05
8.0.210.0000.00817.08
8.0.200.0000.00717.09
8.0.190.0030.00517.01
8.0.180.0040.00417.05
8.0.170.0060.00317.12
8.0.160.0050.00316.98
8.0.150.0060.00317.08
8.0.140.0040.00317.03
8.0.130.0000.00513.47
8.0.120.0030.00617.04
8.0.110.0050.00316.86
8.0.100.0040.00417.13
8.0.90.0030.00316.91
8.0.80.0090.01317.07
8.0.70.0000.00816.92
8.0.60.0050.00316.93
8.0.50.0040.00417.08
8.0.30.0070.01317.31
8.0.20.0120.00817.40
8.0.10.0000.00817.05
8.0.00.0120.00816.90
7.4.330.0000.00516.71
7.4.320.0000.00716.49
7.4.300.0000.00716.54
7.4.290.0000.00716.46
7.4.280.0100.00016.42
7.4.270.0040.00416.45
7.4.260.0000.00716.58
7.4.250.0080.00016.63
7.4.240.0070.00016.52
7.4.230.0000.00816.34
7.4.220.0070.01716.73
7.4.210.0070.00716.43
7.4.200.0000.00716.32
7.4.160.0070.00716.77
7.4.150.0130.00317.40
7.4.140.0150.01017.86
7.4.130.0040.01616.59
7.4.120.0090.00816.59
7.4.110.0100.01016.74
7.4.100.0030.01316.59
7.4.90.0160.00416.52
7.4.80.0100.00719.39
7.4.70.0060.01116.57
7.4.60.0100.00716.58
7.4.50.0090.00616.56
7.4.40.0030.01316.77
7.4.30.0140.00916.75
7.4.00.0100.00514.92
7.3.330.0040.00413.25
7.3.320.0030.00313.35
7.3.310.0000.00716.27
7.3.300.0000.00716.38
7.3.290.0090.00516.41
7.3.280.0110.00716.38
7.3.270.0100.00717.40
7.3.260.0150.00316.44
7.3.240.0100.00816.38
7.3.230.0100.00716.50
7.3.210.0090.00916.59
7.3.200.0120.00316.43
7.3.190.0160.00516.46
7.3.180.0120.00916.48
7.3.170.0070.01416.50
7.3.160.0090.00616.38
7.3.120.0120.00314.83
7.3.110.0130.00614.85
7.3.100.0030.00615.00
7.3.90.0000.01015.07
7.3.80.0030.00714.75
7.3.70.0070.01015.00
7.3.60.0060.00614.70
7.3.50.0130.00315.06
7.3.40.0070.00714.79
7.3.30.0030.01014.97
7.3.20.0060.00916.54
7.3.10.0080.00416.57
7.3.00.0100.00716.84
7.2.330.0060.01216.62
7.2.320.0130.01016.34
7.2.310.0090.01316.81
7.2.300.0100.00716.85
7.2.290.0190.00016.44
7.2.250.0040.01415.06
7.2.240.0070.01415.39
7.2.230.0130.00315.32
7.2.220.0080.00315.11
7.2.210.0040.00814.83
7.2.200.0070.00315.09
7.2.190.0090.00015.01
7.2.180.0040.00814.89
7.2.170.0090.00614.86
7.2.60.0070.00716.65
7.2.00.0100.00019.32
7.1.330.0060.00615.71
7.1.320.0030.01315.32
7.1.310.0060.00915.63
7.1.300.0030.01015.80
7.1.290.0060.00615.82
7.1.280.0040.01115.93
7.1.270.0100.00715.82
7.1.260.0000.01115.73
7.1.200.0030.00915.74
7.1.100.0040.00818.01
7.1.70.0030.00617.12
7.1.60.0110.01419.05
7.1.50.0040.01817.10
7.1.00.0070.07322.32
7.0.200.0080.00016.54
7.0.60.0170.07019.78
7.0.50.0100.04317.78
7.0.40.0070.04020.00
7.0.30.0300.07720.20
7.0.20.0230.04320.04
7.0.10.0070.04020.22
7.0.00.0100.07720.16
5.6.280.0100.06321.02
5.6.210.0100.07720.71
5.6.200.0030.07018.17
5.6.190.0030.08320.59
5.6.180.3900.04020.57
5.6.170.0370.04020.35
5.6.160.0100.08020.44
5.6.150.0130.07718.22
5.6.140.0100.07018.14
5.6.130.0030.08318.12
5.6.120.0070.05720.98
5.6.110.0070.04320.93
5.6.100.0070.06020.97
5.6.90.0130.08020.96
5.6.80.0100.08720.52
5.5.350.4170.05020.41
5.5.340.0030.06317.91
5.5.330.0070.05320.28
5.5.320.0300.04320.28
5.5.310.0200.04320.31
5.5.300.0100.04017.98
5.5.290.0130.06018.02
5.5.280.0000.08320.96
5.5.270.0000.04720.79
5.5.260.0070.05720.86
5.5.250.0030.07720.53
5.5.240.0130.04720.12

preferences:
39.58 ms | 400 KiB | 5 Q