3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTimeImmutable('2012-07-01'); $interval = new DateInterval('P1D'); $periodWithRecurrences = new \DatePeriod($start, $interval, $start->add($interval)); foreach($periodWithRecurrences as $date) { echo $date->format('Y-m-d') . \PHP_EOL; } echo \PHP_EOL; $periodWithRecurrences = new DatePeriod($start, $interval, 0); foreach($periodWithRecurrences as $date) { echo $date->format('Y-m-d') . \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.00018.30
8.3.50.0030.01318.10
8.3.40.0150.00319.14
8.3.30.0080.00818.92
8.3.20.0040.00422.39
8.3.10.0040.00420.26
8.3.00.0000.00722.46
8.2.180.0070.00718.79
8.2.170.0140.00719.25
8.2.160.0030.01019.45
8.2.150.0070.00024.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00019.54
8.2.110.0060.00321.00
8.2.100.0080.00417.97
8.2.90.0050.00517.97
8.2.80.0060.00318.17
8.2.70.0030.00617.93
8.2.60.0040.00418.22
8.2.50.0060.00318.10
8.2.40.0090.00021.20
8.2.30.0050.00319.22
8.2.20.0060.00318.08
8.2.10.0040.00419.45
8.2.00.0030.00519.26
8.1.280.0090.00625.92
8.1.270.0060.00322.50
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0030.00623.84
8.1.230.0040.00722.81
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0000.01117.60
8.1.190.0030.00617.60
8.1.180.0040.00418.10
8.1.170.0050.00518.63
8.1.160.0040.00418.92
8.1.150.0080.00018.97
8.1.140.0040.00420.99
8.1.130.0000.00720.20
8.1.120.0000.00817.71
8.1.110.0070.00017.68
8.1.100.0080.00017.56
8.1.90.0050.00317.67
8.1.80.0000.00717.67
8.1.70.0060.00317.67
8.1.60.0060.00317.73
8.1.50.0060.00317.58
8.1.40.0050.00317.67
8.1.30.0030.00517.78
8.1.20.0040.00417.74
8.1.10.0040.00417.78
8.1.00.0040.00417.70
8.0.300.0100.00019.98
8.0.290.0040.00417.00
8.0.280.0000.00718.65
8.0.270.0030.00317.36
8.0.260.0000.00720.07
8.0.250.0050.00217.28
8.0.240.0030.00317.25
8.0.230.0040.00417.09
8.0.220.0030.00317.16
8.0.210.0030.00317.18
8.0.200.0040.00417.22
8.0.190.0040.00417.29
8.0.180.0040.00417.11
8.0.170.0040.00417.18
8.0.160.0050.00217.23
8.0.150.0030.00517.01
8.0.140.0040.00417.10
8.0.130.0000.00613.52
8.0.120.0080.00017.13
8.0.110.0000.00717.14
8.0.100.0040.00417.22
8.0.90.0030.00617.09
8.0.80.0130.00317.09
8.0.70.0030.00517.20
8.0.60.0000.00717.04
8.0.50.0040.00417.12
8.0.30.0090.01217.47
8.0.20.0170.00217.50
8.0.10.0000.00717.20
8.0.00.0030.01416.96
7.4.330.0030.00315.55
7.4.320.0000.00716.74
7.4.300.0060.00016.76
7.4.290.0000.00716.75
7.4.280.0000.00716.61
7.4.270.0000.00716.74
7.4.260.0000.00513.43
7.4.250.0050.00316.76
7.4.240.0030.00316.78
7.4.230.0070.00016.75
7.4.220.0050.00216.72
7.4.210.0040.01116.68
7.4.200.0000.00716.86
7.4.130.0070.01016.77
7.4.120.0070.01116.93
7.4.110.0060.01216.78
7.4.100.0110.01116.76
7.4.90.0000.01816.70
7.4.80.0060.01219.39
7.4.70.0130.00316.75
7.4.60.0090.00916.45
7.4.50.0050.01316.68
7.4.40.0070.01016.75
7.4.30.0120.00616.43
7.4.20.0070.01016.79
7.4.10.0110.00715.98
7.4.00.0100.00615.57
7.3.330.0000.00816.56
7.3.320.0020.00313.32
7.3.310.0070.00016.43
7.3.300.0030.00316.51
7.3.290.0040.00416.49
7.3.260.0120.00616.67
7.3.240.0110.00516.62
7.3.230.0050.01116.73
7.3.210.0120.00316.55
7.3.200.0100.01016.66
7.3.190.0030.01316.58
7.3.180.0000.01916.73
7.3.170.0100.01316.50
7.3.160.0050.01316.66
7.3.150.0150.00616.69
7.3.140.0000.01616.64
7.3.130.0100.00915.89
7.3.120.0080.00815.55
7.3.110.0090.00715.48
7.3.100.0090.00615.47
7.3.90.0050.01015.37
7.3.80.0060.00915.38
7.3.70.0050.00815.33
7.3.60.0060.00915.29
7.3.50.0060.00815.13
7.3.40.0080.00615.30
7.3.30.0080.00815.29
7.3.20.0110.00916.35
7.3.10.0070.00716.34
7.3.00.0070.00816.33
7.2.330.0040.01216.82
7.2.320.0080.00816.75
7.2.310.0110.01116.99
7.2.300.0060.01616.57
7.2.290.0100.01016.68
7.2.280.0140.00716.84
7.2.270.0070.01116.48
7.2.260.0070.01016.18
7.2.250.0080.01115.64
7.2.240.0090.01015.48
7.2.230.0050.01215.72
7.2.220.0060.00815.52
7.2.210.0080.00615.45
7.2.200.0060.00915.49
7.2.190.0060.01015.61
7.2.180.0020.01415.37
7.2.170.0080.00715.37
7.2.160.0060.01115.63
7.2.150.0120.00816.60
7.2.140.0090.00816.62
7.2.130.0070.00816.49
7.2.120.0110.00616.45
7.2.110.0100.00716.41
7.2.100.0100.00716.57
7.2.90.0090.00916.50
7.2.80.0070.01016.57
7.2.70.0090.00816.65
7.2.60.0110.00916.45
7.2.50.0160.00816.54
7.2.40.0060.00816.50
7.2.30.0120.01116.49
7.2.20.0100.00616.54
7.2.10.0100.00816.51
7.2.00.0120.00516.63
7.1.330.0110.00615.79
7.1.320.0060.00815.47
7.1.310.0160.00415.41
7.1.300.0090.00715.36
7.1.290.0070.00915.32
7.1.280.0080.00715.52
7.1.270.0090.00815.50
7.1.260.0070.00915.47
7.1.250.0070.00915.26
7.1.240.0110.00915.78
7.1.230.0100.00715.70
7.1.220.0090.01015.65
7.1.210.0140.00415.71
7.1.200.0150.00415.62
7.1.190.0120.00515.59
7.1.180.0100.00715.67
7.1.170.0090.01115.51
7.1.160.0090.01115.63
7.1.150.0090.00715.82
7.1.140.0110.00915.82
7.1.130.0150.00915.73
7.1.120.0100.00715.81
7.1.110.0130.00615.72
7.1.100.0120.00415.78
7.1.90.0080.01115.70
7.1.80.0080.01215.90
7.1.70.0080.00915.68
7.1.60.0090.00915.91
7.1.50.0110.00815.80
7.1.40.0090.00915.74
7.1.30.0140.00315.66
7.1.20.0070.01115.56
7.1.10.0180.00515.67
7.1.00.0080.01215.77

preferences:
72.67 ms | 401 KiB | 5 Q