3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2012-07-01'); $interval = new DateInterval('P7D'); $end = new DateTime('2012-07-31'); $recurrences = 4; $iso = 'R4/2012-07-01T00:00:00Z/P7D'; // All of these periods are equivalent. $p = new DatePeriod($start, $interval, $recurrences); $p = new DatePeriod($start, $interval, $end); //$p = new DatePeriod($iso); foreach ($p as $d) { echo $d->format('d '); } echo "\n"; $p = \PHP_VERSION_ID >= 70107 ? clone $p : new \DatePeriod( $p->getStartDate(), new \DateInterval('P1D'), $p->getEndDate() ?: $p->recurrences - 1, (int) !$p->include_start_date ) ; foreach ($p as $d) { echo $d->format('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.60.0120.00618.43
8.3.50.0070.00718.32
8.3.40.0040.01118.93
8.3.30.0040.01119.07
8.3.20.0040.00420.13
8.3.10.0060.00319.33
8.3.00.0050.00320.91
8.2.180.0090.00618.41
8.2.170.0070.00722.96
8.2.160.0000.01422.15
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00019.27
8.2.120.0040.00426.16
8.2.110.0030.00620.97
8.2.100.0040.00818.03
8.2.90.0040.00420.56
8.2.80.0090.00018.16
8.2.70.0040.00418.04
8.2.60.0000.00818.28
8.2.50.0040.00418.10
8.2.40.0080.00022.14
8.2.30.0060.00319.39
8.2.20.0030.00618.13
8.2.10.0040.00418.08
8.2.00.0040.00418.08
8.1.280.0120.00425.92
8.1.270.0040.00421.97
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0070.00423.80
8.1.230.0110.00020.91
8.1.220.0050.00317.91
8.1.210.0000.00818.91
8.1.200.0030.00617.60
8.1.190.0080.00017.35
8.1.180.0050.00318.10
8.1.170.0000.00818.78
8.1.160.0020.00519.16
8.1.150.0040.00418.98
8.1.140.0040.00421.41
8.1.130.0000.00718.98
8.1.120.0000.00717.62
8.1.110.0040.00417.64
8.1.100.0040.00417.68
8.1.90.0000.00717.67
8.1.80.0000.00717.67
8.1.70.0050.00317.73
8.1.60.0000.00717.62
8.1.50.0000.00917.70
8.1.40.0120.00017.58
8.1.30.0040.00417.63
8.1.20.0040.00417.84
8.1.10.0050.00217.68
8.1.00.0030.00517.63
8.0.300.0000.00920.15
8.0.290.0040.00417.00
8.0.280.0030.00318.64
8.0.270.0030.00317.42
8.0.260.0000.00718.80
8.0.250.0030.00517.16
8.0.240.0040.00417.12
8.0.230.0080.00017.30
8.0.220.0040.00417.19
8.0.210.0000.00717.20
8.0.200.0040.00417.11
8.0.190.0030.00617.16
8.0.180.0040.00417.18
8.0.170.0040.00417.13
8.0.160.0000.00717.22
8.0.150.0080.00017.03
8.0.140.0000.00817.16
8.0.130.0060.00013.57
8.0.120.0000.00817.04
8.0.110.0040.00417.05
8.0.100.0050.00317.29
8.0.90.0070.00017.08
8.0.80.0110.00417.20
8.0.70.0040.00417.27
8.0.60.0040.00417.06
8.0.50.0050.00316.96
8.0.30.0070.01017.27
8.0.20.0110.00917.41
8.0.10.0040.00417.34
8.0.00.0140.00316.99
7.4.330.0000.00515.55
7.4.320.0070.00016.68
7.4.300.0070.00016.58
7.4.290.0080.00016.61
7.4.280.0060.00316.76
7.4.270.0040.00416.60
7.4.260.0000.00716.59
7.4.250.0030.00316.64
7.4.240.0070.00016.79
7.4.230.0070.00016.86
7.4.220.0030.01716.59
7.4.210.0060.01016.61
7.4.200.0030.00316.51
7.4.160.0110.00816.71
7.4.150.0100.00717.40
7.4.140.0090.01217.86
7.4.130.0130.00716.63
7.4.120.0120.00716.74
7.4.110.0100.00716.83
7.4.100.0150.00616.73
7.4.90.0100.00716.63
7.4.80.0060.01319.39
7.4.70.0160.00016.53
7.4.60.0030.01816.68
7.4.50.0060.00916.78
7.4.40.0100.00716.58
7.4.30.0130.00416.70
7.4.10.0040.01515.38
7.4.00.0090.00615.36
7.3.330.0000.00513.21
7.3.320.0050.00013.23
7.3.310.0000.00716.51
7.3.300.0000.00716.32
7.3.290.0100.00716.50
7.3.280.0090.00816.47
7.3.270.0150.00317.40
7.3.260.0070.01016.76
7.3.250.0090.00916.58
7.3.240.0090.01016.52
7.3.230.0070.01016.73
7.3.210.0140.00416.46
7.3.200.0100.00616.71
7.3.190.0040.01216.38
7.3.180.0080.00916.69
7.3.170.0040.01216.55
7.3.160.0110.00516.59
7.3.130.0070.01015.02
7.3.120.0100.00315.27
7.3.110.0000.01815.16
7.3.100.0090.00615.23
7.3.90.0090.00615.05
7.3.80.0030.01014.78
7.3.70.0060.00315.05
7.3.60.0040.01115.02
7.3.50.0030.00714.96
7.3.40.0090.00614.96
7.3.30.0090.00315.05
7.3.20.0150.00316.90
7.3.10.0030.01017.00
7.3.00.0060.00616.83
7.2.330.0030.01516.70
7.2.320.0070.01116.91
7.2.310.0060.01516.88
7.2.300.0000.01516.84
7.2.290.0100.01016.86
7.2.260.0100.01015.23
7.2.250.0030.01315.24
7.2.240.0070.00715.22
7.2.230.0090.00615.31
7.2.220.0000.01315.20
7.2.210.0120.00315.30
7.2.200.0070.00715.31
7.2.190.0080.00415.35
7.2.180.0040.01515.36
7.2.170.0070.00715.24
7.2.160.0090.00615.23
7.2.150.0000.01416.88
7.2.140.0040.00817.29
7.2.130.0090.00617.09
7.2.120.0030.01417.36
7.2.110.0090.00917.15
7.2.100.0030.01617.22
7.2.90.0000.01416.91
7.2.80.0030.00617.25
7.2.70.0000.01216.95
7.2.60.0060.00617.07
7.2.50.0120.00317.19
7.2.40.0100.00317.12
7.2.30.0070.00717.05
7.2.20.0100.00317.20
7.2.10.0060.00817.02
7.2.00.0000.01517.04
7.1.330.0040.01216.04
7.1.320.0040.01116.02
7.1.310.0100.00316.07
7.1.300.0060.00315.97
7.1.290.0030.01015.73
7.1.280.0060.00916.05
7.1.270.0120.00316.02
7.1.260.0030.00615.82
7.1.250.0030.01016.00
7.1.240.0090.00915.95
7.1.230.0070.01016.12
7.1.220.0030.00615.93
7.1.210.0030.01016.11
7.1.200.0060.00815.99
7.1.190.0000.01415.83
7.1.180.0070.00715.95
7.1.170.0040.00716.03
7.1.160.0000.01315.95
7.1.150.0060.00315.66
7.1.140.0100.00015.80
7.1.130.0000.01315.87
7.1.120.0040.00715.97
7.1.110.0030.00615.99
7.1.100.0040.01115.83
7.1.90.0040.01116.00
7.1.80.0060.00616.11
7.1.70.0100.00516.54
7.1.60.0140.00925.72
7.1.50.0110.01225.48
7.1.40.0140.01225.28
7.1.30.0160.00925.34
7.1.20.0120.01225.37
7.1.10.0030.01316.38
7.1.00.0100.00716.35
7.0.330.0000.01015.52
7.0.320.0040.00815.38
7.0.310.0090.00315.42
7.0.300.0040.00815.51
7.0.290.0100.00615.56
7.0.280.0060.00615.74
7.0.270.0070.00715.55
7.0.260.0030.00615.27
7.0.250.0040.00815.23
7.0.240.0070.00315.52
7.0.230.0070.00715.78
7.0.220.0100.00315.54
7.0.210.0030.00915.24
7.0.200.0040.00916.40
7.0.190.0030.01216.22
7.0.180.0070.00615.99
7.0.170.0060.01116.08
7.0.160.0050.00915.92
7.0.150.0050.00916.06
7.0.140.0060.01016.06
7.0.130.0020.01216.29
7.0.120.0030.00916.13
7.0.110.0050.01116.00
7.0.100.0080.00815.98
7.0.90.0060.00916.20
7.0.80.0060.00916.15
7.0.70.0040.01116.14
7.0.60.0110.00315.98
7.0.50.0040.01016.17
7.0.40.0090.00615.08
7.0.30.0070.00815.18
7.0.20.0050.01115.12
7.0.10.0040.00915.14
7.0.00.0140.00515.10
5.6.400.0030.01014.61
5.6.390.0030.00714.66
5.6.380.0030.01014.76
5.6.370.0030.00614.45
5.6.360.0100.00014.70
5.6.350.0030.01214.43
5.6.340.0090.00614.48
5.6.330.0000.00914.50
5.6.320.0100.00314.27
5.6.310.0090.00314.46
5.6.300.0040.01114.66
5.6.290.0110.00414.18
5.6.280.0100.00314.41
5.6.270.0060.00914.71
5.6.260.0030.00914.32
5.6.250.0070.00714.38
5.6.240.0060.00914.58
5.6.230.0040.01114.70
5.6.220.0150.00014.60
5.6.210.0000.01314.36
5.6.200.0030.01014.85
5.6.190.0060.00314.76
5.6.180.0080.00314.77
5.6.170.0030.00914.26
5.6.160.0030.00914.25
5.6.150.0030.01614.39
5.6.140.0060.01214.47
5.6.130.0090.00914.79
5.6.120.0060.00614.60
5.6.110.0040.00814.68
5.6.100.0070.00314.36
5.6.90.0030.00914.25
5.6.80.0040.01114.35
5.6.70.0000.00914.33
5.6.60.0090.00614.45
5.6.50.0150.00014.42
5.6.40.0100.00314.46
5.6.30.0100.00714.42
5.6.20.0090.00614.48
5.6.10.0000.01014.35
5.6.00.0060.00314.44

preferences:
68.98 ms | 400 KiB | 5 Q