3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2010-12-02'); $start->modify('first day of this month'); echo $end = new DateTime('2012-05-06'); exit; $end->modify('first day of next month'); $interval = DateInterval::createFromDateString('1 month'); $period = new DatePeriod($start, $interval, $end); foreach ($period as $dt) { echo $dt->format("Y-m") . 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.0170.00716.88
8.3.50.0080.01322.20
8.3.40.0040.01119.09
8.3.30.0120.00318.74
8.3.20.0040.00420.20
8.3.10.0080.00023.51
8.3.00.0040.00420.10
8.2.180.0090.00616.88
8.2.170.0160.00622.96
8.2.160.0040.01120.52
8.2.150.0030.00624.18
8.2.140.0070.00024.66
8.2.130.0060.00319.26
8.2.120.0040.00426.35
8.2.110.0040.00420.65
8.2.100.0000.01218.03
8.2.90.0040.00419.21
8.2.80.0050.00317.97
8.2.70.0060.00317.96
8.2.60.0080.00418.15
8.2.50.0030.00518.07
8.2.40.0000.00822.50
8.2.30.0000.00820.57
8.2.20.0000.00817.92
8.2.10.0080.00018.13
8.2.00.0040.00418.11
8.1.280.0040.01125.92
8.1.270.0040.01420.37
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0090.00023.98
8.1.230.0000.01117.70
8.1.220.0000.00817.80
8.1.210.0080.00018.77
8.1.200.0030.00717.60
8.1.190.0050.00317.36
8.1.180.0030.00618.10
8.1.170.0040.00418.71
8.1.160.0060.00320.85
8.1.150.0000.00818.92
8.1.140.0050.00319.57
8.1.130.0000.00817.73
8.1.120.0050.00217.60
8.1.110.0030.00517.64
8.1.100.0070.00017.55
8.1.90.0100.00017.68
8.1.80.0070.00017.68
8.1.70.0030.00317.61
8.1.60.0040.00417.73
8.1.50.0050.00317.72
8.1.40.0040.00417.63
8.1.30.0030.00617.77
8.1.20.0030.00517.81
8.1.10.0040.00417.82
8.1.00.0030.00617.73
8.0.300.0050.00318.77
8.0.290.0040.00417.13
8.0.280.0000.00718.63
8.0.270.0070.00017.40
8.0.260.0000.00617.39
8.0.250.0030.00317.30
8.0.240.0070.00017.26
8.0.230.0070.00017.11
8.0.220.0000.00817.11
8.0.210.0070.00017.18
8.0.200.0000.00717.23
8.0.190.0070.00417.24
8.0.180.0000.00717.07
8.0.170.0020.00517.07
8.0.160.0060.00317.16
8.0.150.0040.00417.14
8.0.140.0050.00217.10
8.0.130.0040.00413.53
8.0.120.0000.00717.12
8.0.110.0050.00217.12
8.0.100.0000.00817.19
8.0.90.0030.00317.02
8.0.80.0070.00717.08
8.0.70.0000.00817.04
8.0.60.0040.00417.26
8.0.50.0000.00717.09
8.0.30.0070.01217.31
8.0.20.0110.00917.42
8.0.10.0000.00717.20
8.0.00.0130.00416.86
7.4.330.0000.00516.77
7.4.320.0070.00016.74
7.4.300.0040.00416.71
7.4.290.0030.00316.77
7.4.280.0040.00416.74
7.4.270.0000.00716.80
7.4.260.0000.00716.73
7.4.250.0060.00316.67
7.4.240.0050.00216.72
7.4.230.0030.00316.51
7.4.220.0060.01216.81
7.4.210.0060.01016.72
7.4.200.0030.00316.69
7.4.160.0070.01016.65
7.4.150.0140.00717.40
7.4.140.0100.01417.86
7.4.130.0080.01016.78
7.4.120.0080.00816.80
7.4.110.0130.00316.85
7.4.100.0070.01416.63
7.4.90.0140.00316.75
7.4.80.0070.01619.39
7.4.70.0160.00616.70
7.4.60.0080.00816.52
7.4.50.0030.01416.62
7.4.40.0090.00916.83
7.4.30.0040.01217.00
7.4.00.0140.00315.09
7.3.330.0000.00613.38
7.3.320.0000.00713.28
7.3.310.0000.00716.54
7.3.300.0040.00416.43
7.3.290.0040.01216.35
7.3.280.0050.01016.43
7.3.270.0160.00617.40
7.3.260.0160.00616.54
7.3.250.0100.00816.54
7.3.240.0130.00816.54
7.3.230.0120.00616.42
7.3.210.0190.00316.57
7.3.200.0140.00316.61
7.3.190.0100.01016.80
7.3.180.0110.01116.52
7.3.170.0080.00816.48
7.3.160.0120.00616.70
7.3.10.0030.00916.63
7.3.00.0060.00616.89
7.2.330.0090.00916.62
7.2.320.0130.01016.98
7.2.310.0090.01216.60
7.2.300.0130.00316.70
7.2.290.0090.00916.93
7.2.130.0060.00916.84
7.2.120.0130.00016.70
7.2.110.0030.01017.11
7.2.100.0030.01316.92
7.2.90.0040.01216.98
7.2.80.0100.00317.20
7.2.70.0100.00317.26
7.2.60.0050.01016.96
7.2.50.0120.00316.69
7.2.40.0030.00616.99
7.2.30.0000.01617.24
7.2.20.0060.00617.15
7.2.10.0050.00816.78
7.2.00.0030.01218.23
7.1.250.0060.00315.65
7.1.200.0090.00615.94
7.1.100.0000.01017.98
7.1.70.0030.00617.10
7.1.60.0030.01319.52
7.1.50.0000.01916.90
7.1.00.0030.07722.32
7.0.200.0000.00816.68
7.0.60.0170.06719.96
7.0.50.0130.04717.80
7.0.40.0100.03720.12
7.0.30.0230.04020.33
7.0.20.0300.08020.16
7.0.10.0130.06320.04
7.0.00.0130.08019.95
5.6.280.0030.03021.07
5.6.210.0100.07720.72
5.6.200.0170.07718.23
5.6.190.0100.03720.56
5.6.180.0400.07320.43
5.6.170.0130.04720.48
5.6.160.0130.06320.33
5.6.150.0030.08018.11
5.6.140.0130.07318.14
5.6.130.0070.06718.11
5.6.120.0030.09721.11
5.6.110.0070.05721.13
5.6.100.0130.07721.11
5.6.90.0030.08721.09
5.6.80.0030.06720.28
5.5.350.0300.03320.39
5.5.340.0070.07717.93
5.5.330.0030.05320.41
5.5.320.0070.04720.18
5.5.310.0300.04020.23
5.5.300.0070.06017.92
5.5.290.0000.09018.02
5.5.280.0000.06020.96
5.5.270.0130.08720.73
5.5.260.0000.04320.77
5.5.250.0130.07720.68
5.5.240.0200.07320.25

preferences:
45.06 ms | 401 KiB | 5 Q