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($p->getDateInterval()->format('P%yY%mM%dDT%hH%iM%sS')), $p->getEndDate() ?: $p->recurrences, (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.40.0090.00619.22
8.3.30.0070.00718.96
8.3.20.0040.00420.21
8.3.10.0070.00419.25
8.3.00.0030.00520.89
8.2.170.0120.00322.96
8.2.160.0000.01422.21
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0080.00021.05
8.2.120.0050.00326.16
8.2.110.0040.00421.12
8.2.100.0110.00018.03
8.2.90.0060.00619.22
8.2.80.0080.00018.05
8.2.70.0090.00017.88
8.2.60.0060.00317.80
8.2.50.0050.00318.10
8.2.40.0040.00422.32
8.2.30.0000.00719.21
8.2.20.0040.00418.03
8.2.10.0050.00218.23
8.2.00.0030.00518.14
8.1.270.0040.00422.19
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00619.21
8.1.230.0040.00719.10
8.1.220.0080.00017.77
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0030.00617.35
8.1.180.0040.00418.10
8.1.170.0000.00818.80
8.1.160.0070.00019.00
8.1.150.0080.00018.98
8.1.140.0000.00719.65
8.1.130.0050.00218.94
8.1.120.0040.00417.63
8.1.110.0040.00417.66
8.1.100.0000.00817.61
8.1.90.0040.00417.57
8.1.80.0040.00417.66
8.1.70.0000.00717.71
8.1.60.0040.00417.63
8.1.50.0030.00517.64
8.1.40.0000.01117.58
8.1.30.0040.00417.80
8.1.20.0030.00517.68
8.1.10.0000.00717.72
8.1.00.0020.00517.68
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0000.00818.46
8.0.270.0070.00017.41
8.0.260.0050.00318.92
8.0.250.0030.00617.18
8.0.240.0000.00817.16
8.0.230.0070.00017.23
8.0.220.0030.00517.14
8.0.210.0030.00317.22
8.0.200.0040.00417.22
8.0.190.0000.01017.26
8.0.180.0040.00417.08
8.0.170.0090.00017.21
8.0.160.0070.00017.06
8.0.150.0030.00617.02
8.0.140.0030.00317.02
8.0.130.0000.00613.56
8.0.120.0050.00317.05
8.0.110.0040.00417.02
8.0.100.0040.00417.12
8.0.90.0050.00317.08
8.0.80.0080.00717.19
8.0.70.0040.00417.22
8.0.60.0040.00417.14
8.0.50.0000.00717.19
8.0.30.0110.00817.36
8.0.20.0140.00617.44
8.0.10.0060.00317.26
8.0.00.0110.00617.14
7.4.330.0000.00515.55
7.4.320.0000.00716.62
7.4.300.0000.00716.68
7.4.290.0060.00316.57
7.4.280.0000.00716.59
7.4.270.0000.00716.57
7.4.260.0040.00416.70
7.4.250.0040.00416.76
7.4.240.0040.00416.65
7.4.230.0000.00816.79
7.4.220.0040.01916.78
7.4.210.0120.00416.79
7.4.200.0070.00016.64
7.4.160.0090.00716.67
7.4.150.0090.00917.40
7.4.140.0100.00917.86
7.4.130.0070.01116.66
7.4.120.0120.00816.73
7.4.110.0100.00716.66
7.4.100.0060.01216.80
7.4.90.0060.00916.70
7.4.80.0090.00819.39
7.4.70.0060.00916.81
7.4.60.0120.00416.70
7.4.50.0120.00616.42
7.4.40.0080.00816.54
7.4.30.0060.00916.91
7.4.10.0070.01015.36
7.4.00.0050.01115.20
7.3.330.0000.00613.38
7.3.320.0000.00513.23
7.3.310.0000.00716.42
7.3.300.0040.00416.52
7.3.290.0070.00716.49
7.3.280.0070.01116.50
7.3.270.0130.00717.40
7.3.260.0070.01016.67
7.3.250.0080.01016.58
7.3.240.0050.01216.54
7.3.230.0080.00816.52
7.3.210.0100.00716.83
7.3.200.0090.00616.52
7.3.190.0080.00816.61
7.3.180.0080.01416.46
7.3.170.0030.01316.54
7.3.160.0060.00916.48
7.3.130.0120.00614.93
7.3.120.0070.01115.09
7.3.110.0110.00814.86
7.3.100.0030.01015.08
7.3.90.0030.00915.18
7.3.80.0040.00814.78
7.3.70.0080.00415.02
7.3.60.0040.01115.04
7.3.50.0080.00414.96
7.3.40.0060.00915.05
7.3.30.0000.01715.23
7.3.20.0030.01416.77
7.3.10.0030.01316.57
7.3.00.0060.00616.96
7.2.330.0070.01016.82
7.2.320.0030.01516.61
7.2.310.0100.00616.96
7.2.300.0110.00716.94
7.2.290.0070.01016.75
7.2.260.0130.00615.49
7.2.250.0030.01415.23
7.2.240.0130.00315.42
7.2.230.0030.01014.93
7.2.220.0050.00815.50
7.2.210.0000.01515.36
7.2.200.0060.00315.02
7.2.190.0040.01215.29
7.2.180.0030.01015.22
7.2.170.0100.00315.18
7.2.160.0000.01815.16
7.2.150.0070.01017.16
7.2.140.0060.00617.25
7.2.130.0060.01016.94
7.2.120.0030.00617.07
7.2.110.0100.00716.91
7.2.100.0080.00616.96
7.2.90.0040.00817.21
7.2.80.0090.00617.21
7.2.70.0090.00617.16
7.2.60.0090.00616.96
7.2.50.0070.00717.07
7.2.40.0040.00817.23
7.2.30.0040.01116.87
7.2.20.0080.00416.93
7.2.10.0040.01417.00
7.2.00.0060.00917.07
7.1.330.0030.01316.01
7.1.320.0090.00615.97
7.1.310.0060.00316.03
7.1.300.0030.00616.11
7.1.290.0050.00315.97
7.1.280.0090.00615.84
7.1.270.0110.00715.74
7.1.260.0060.00915.79
7.1.250.0090.00316.16
7.1.240.0130.00015.62
7.1.230.0090.00615.95
7.1.220.0030.01316.03
7.1.210.0060.00615.93
7.1.200.0090.00415.95
7.1.190.0030.01015.96
7.1.180.0030.00515.78
7.1.170.0060.00616.02
7.1.160.0090.00416.02
7.1.150.0030.01215.78
7.1.140.0000.00915.91
7.1.130.0030.01015.82
7.1.120.0070.00715.94
7.1.110.0000.01315.80
7.1.100.0000.01315.98
7.1.90.0060.00615.98
7.1.80.0000.01516.05
7.1.70.0060.00716.66
7.1.60.0140.01225.68
7.1.50.0120.01525.30
7.1.40.0140.01125.34
7.1.30.0170.01025.29
7.1.20.0140.01225.40
7.1.10.0060.01016.42
7.1.00.0090.00516.32
7.0.330.0040.00815.47
7.0.320.0000.01315.22
7.0.310.0100.00315.57
7.0.300.0030.01015.27
7.0.290.0060.00615.65
7.0.280.0090.00615.35
7.0.270.0070.01015.51
7.0.260.0080.00015.57
7.0.250.0030.00715.76
7.0.240.0060.00615.65
7.0.230.0130.00315.69
7.0.220.0030.00915.65
7.0.210.0090.00615.32
7.0.200.0040.01116.32
7.0.190.0010.01516.37
7.0.180.0030.01115.94
7.0.170.0040.01116.04
7.0.160.0050.01216.06
7.0.150.0020.01415.93
7.0.140.0060.00916.17
7.0.130.0020.01116.32
7.0.120.0050.00916.16
7.0.110.0050.01215.95
7.0.100.0050.01116.05
7.0.90.0050.01216.12
7.0.80.0030.01116.02
7.0.70.0070.00915.96
7.0.60.0090.00515.97
7.0.50.0040.01315.96
7.0.40.0070.00415.11
7.0.30.0060.00615.17
7.0.20.0040.00915.11
7.0.10.0020.01215.11
7.0.00.0080.00515.24
5.6.400.0040.01114.55
5.6.390.0150.00314.60
5.6.380.0000.01614.50
5.6.370.0040.00414.76
5.6.360.0000.00914.66
5.6.350.0110.00314.62
5.6.340.0070.00714.73
5.6.330.0070.00714.82
5.6.320.0070.00314.31
5.6.310.0040.01114.31
5.6.300.0110.00714.42
5.6.290.0030.01014.04
5.6.280.0030.00614.41
5.6.270.0070.00714.29
5.6.260.0040.01414.57
5.6.250.0070.01114.49
5.6.240.0030.00914.51
5.6.230.0060.00914.48
5.6.220.0060.01014.69
5.6.210.0100.00314.41
5.6.200.0040.00814.27
5.6.190.0050.00914.63
5.6.180.0070.00714.81
5.6.170.0080.00014.54
5.6.160.0040.00714.77
5.6.150.0090.00314.45
5.6.140.0080.00614.62
5.6.130.0000.01314.54
5.6.120.0030.00814.69
5.6.110.0050.00514.55
5.6.100.0000.01014.42
5.6.90.0050.00514.48
5.6.80.0090.00614.65
5.6.70.0040.00714.30
5.6.60.0100.00014.44
5.6.50.0050.00514.27
5.6.40.0000.01114.66
5.6.30.0110.00014.43
5.6.20.0000.00914.21
5.6.10.0080.00814.48
5.6.00.0030.01014.39

preferences:
64.13 ms | 400 KiB | 5 Q