3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '2018-10-26'; $daysLeft = 4; $startDateObj = new DateTime($string); $endDateObj = new DateTime($string); $endDateObj = $endDateObj->modify('+'.$daysLeft.' days'); $interval = new DateInterval('P'.$daysLeft.'D'); $dateRange = new DatePeriod($startDateObj, $interval, $endDateObj); foreach($dateRange as $date) { echo "1 day!".PHP_EOL; }

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.0150.00918.49
8.3.50.0070.01018.33
8.3.40.0120.00319.00
8.3.30.0060.00918.98
8.3.20.0040.00419.14
8.3.10.0080.00021.77
8.3.00.0000.00920.82
8.2.180.0160.00318.41
8.2.170.0030.01322.96
8.2.160.0070.00721.07
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0190.00026.16
8.2.120.0000.00821.18
8.2.110.0130.01021.12
8.2.100.0040.00717.97
8.2.90.0040.00419.38
8.2.80.0000.01017.97
8.2.70.0040.00418.05
8.2.60.0000.00818.22
8.2.50.0040.00418.10
8.2.40.0080.00019.55
8.2.30.0040.00419.27
8.2.20.0050.00318.16
8.2.10.0000.00818.26
8.2.00.0040.00418.04
8.1.280.0120.00325.92
8.1.270.0080.00020.81
8.1.260.0100.00026.35
8.1.250.0090.00928.09
8.1.240.0180.00322.55
8.1.230.0060.00621.02
8.1.220.0030.00617.89
8.1.210.0050.00319.07
8.1.200.0030.00517.48
8.1.190.0060.00317.60
8.1.180.0080.00018.10
8.1.170.0080.00018.81
8.1.160.0040.00418.94
8.1.150.0000.00819.02
8.1.140.0050.00222.31
8.1.130.0070.00020.21
8.1.120.0040.00417.73
8.1.110.0000.00817.69
8.1.100.0070.00017.62
8.1.90.0000.00817.76
8.1.80.0020.00517.73
8.1.70.0000.00717.70
8.1.60.0000.00817.84
8.1.50.0040.00417.71
8.1.40.0030.00617.62
8.1.30.0000.00817.89
8.1.20.0080.00017.75
8.1.10.0040.00417.79
8.1.00.0040.00417.78
8.0.300.0040.00420.01
8.0.290.0050.00216.88
8.0.280.0070.00018.57
8.0.270.0030.00317.38
8.0.260.0040.00418.64
8.0.250.0030.00317.19
8.0.240.0000.00617.28
8.0.230.0030.00317.13
8.0.220.0000.00717.10
8.0.210.0070.00017.14
8.0.200.0040.00417.11
8.0.190.0000.00817.20
8.0.180.0030.00517.11
8.0.170.0040.00417.06
8.0.160.0060.00317.11
8.0.150.0000.00717.20
8.0.140.0040.00417.02
8.0.130.0080.00013.52
8.0.120.0000.00717.14
8.0.110.0070.00017.11
8.0.100.0070.00017.10
8.0.90.0040.00417.19
8.0.80.0110.00717.17
8.0.70.0000.00817.19
8.0.60.0000.00816.95
8.0.50.0040.00417.02
8.0.30.0130.00517.36
8.0.20.0120.00817.40
8.0.10.0000.00717.14
8.0.00.0120.00617.16
7.4.330.0000.00515.55
7.4.320.0030.00316.67
7.4.300.0030.00316.78
7.4.290.0040.00416.66
7.4.280.0070.00316.71
7.4.270.0000.00716.71
7.4.260.0040.00416.73
7.4.250.0000.00816.68
7.4.240.0030.00316.69
7.4.230.0030.00316.66
7.4.220.0040.00416.91
7.4.210.0030.01316.91
7.4.200.0070.00016.78
7.4.160.0080.01016.73
7.4.140.0120.00717.86
7.4.130.0180.00416.66
7.4.120.0080.01016.66
7.4.110.0090.01616.44
7.4.100.0170.00016.66
7.4.90.0070.01016.80
7.4.80.0090.01219.39
7.4.70.0060.00916.71
7.4.60.0100.00616.64
7.4.50.0030.01316.57
7.4.40.0060.01516.67
7.4.00.0070.00715.25
7.3.330.0050.00013.35
7.3.320.0000.00513.39
7.3.310.0000.00916.47
7.3.300.0030.00316.46
7.3.290.0030.00316.37
7.3.280.0070.00916.43
7.3.260.0080.01016.58
7.3.240.0130.00616.70
7.3.230.0090.00916.44
7.3.210.0070.01016.57
7.3.200.0070.01016.36
7.3.190.0120.00916.76
7.3.180.0070.01016.59
7.3.170.0100.01216.68
7.3.160.0090.00616.46
7.2.330.0100.01317.00
7.2.320.0100.01016.60
7.2.310.0100.00616.81
7.2.300.0080.00816.93
7.2.290.0030.01916.70
7.2.110.0250.00514.97
7.2.100.0240.00614.67
7.2.90.0230.00914.73
7.2.80.0230.00814.82
7.2.70.0220.01315.12
7.2.60.0240.01215.28
7.2.50.0170.01014.94
7.2.40.0210.00615.22
7.2.30.0240.00615.01
7.2.20.0250.00515.17
7.2.10.0220.00815.26
7.2.00.0400.00415.27
7.1.230.0180.00714.10
7.1.220.0360.00313.98
7.1.210.0300.00513.96
7.1.200.0210.00613.83
7.1.190.0160.00913.84
7.1.180.0190.00813.92
7.1.170.0220.00613.99
7.1.160.0600.00513.99
7.1.150.0220.00314.03
7.1.140.0200.00714.03
7.1.130.0270.00714.15
7.1.120.0190.00514.25
7.1.110.0210.00414.02
7.1.100.0130.01114.01
7.1.90.0230.00814.14
7.1.80.0300.00814.17
7.1.70.0180.00714.12
7.1.60.0400.00931.97
7.1.50.0360.00932.01
7.1.40.0380.01032.08
7.1.30.0350.01231.95
7.1.20.0400.00532.11
7.1.10.0180.00814.11
7.1.00.0140.01013.98
5.6.380.0090.00814.34

preferences:
45.32 ms | 400 KiB | 5 Q