3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2010-12-02 00:00:00'); $start->modify('first day of this month'); $end = new DateTime('2012-05-06 00:00:00'); $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.0120.00616.75
8.3.50.0150.00622.90
8.3.40.0040.01119.10
8.3.30.0090.00619.05
8.3.20.0030.00620.12
8.3.10.0070.00023.48
8.3.00.0040.00419.38
8.2.180.0160.00316.63
8.2.170.0120.00322.96
8.2.160.0070.00720.59
8.2.150.0040.01124.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00420.96
8.2.110.0090.00022.23
8.2.100.0090.00318.03
8.2.90.0040.00419.30
8.2.80.0000.00817.97
8.2.70.0060.00317.88
8.2.60.0100.00017.93
8.2.50.0060.00318.07
8.2.40.0040.00420.07
8.2.30.0060.00318.25
8.2.20.0080.00018.04
8.2.10.0040.00418.12
8.2.00.0060.00317.89
8.1.280.0170.00325.92
8.1.270.0040.00822.13
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0040.00423.82
8.1.230.0110.00019.13
8.1.220.0030.00517.74
8.1.210.0050.00418.77
8.1.200.0030.00617.60
8.1.190.0050.00317.38
8.1.180.0000.00818.10
8.1.170.0000.01218.71
8.1.160.0000.00722.13
8.1.150.0050.00319.07
8.1.140.0070.00017.75
8.1.130.0000.00718.02
8.1.120.0000.00817.75
8.1.110.0000.00817.75
8.1.100.0000.00717.69
8.1.90.0050.00217.70
8.1.80.0030.00317.62
8.1.70.0040.00417.64
8.1.60.0040.00417.81
8.1.50.0030.00617.71
8.1.40.0040.00417.75
8.1.30.0040.00417.82
8.1.20.0070.00017.91
8.1.10.0000.00717.73
8.1.00.0000.00717.76
8.0.300.0030.00518.77
8.0.290.0040.00416.88
8.0.280.0080.00018.50
8.0.270.0030.00317.44
8.0.260.0060.00017.27
8.0.250.0030.00317.09
8.0.240.0070.00017.25
8.0.230.0030.00317.19
8.0.220.0030.00317.05
8.0.210.0030.00317.11
8.0.200.0000.00717.27
8.0.190.0040.00417.26
8.0.180.0000.00817.08
8.0.170.0000.00817.25
8.0.160.0040.00417.12
8.0.150.0040.00417.05
8.0.140.0050.00217.14
8.0.130.0030.00313.49
8.0.120.0030.00617.04
8.0.110.0030.00517.18
8.0.100.0000.00717.18
8.0.90.0000.00716.98
8.0.80.0110.00617.08
8.0.70.0040.00417.04
8.0.60.0000.00717.07
8.0.50.0070.00017.09
8.0.30.0140.00917.37
8.0.20.0160.00717.40
8.0.10.0040.00417.14
8.0.00.0100.00817.03
7.4.330.0050.00015.28
7.4.320.0040.00416.65
7.4.300.0030.00316.80
7.4.290.0000.00716.84
7.4.280.0030.00516.64
7.4.270.0030.00316.73
7.4.260.0000.01016.81
7.4.250.0070.00016.52
7.4.240.0050.00216.85
7.4.230.0000.00716.63
7.4.220.0110.00716.88
7.4.210.0100.00316.85
7.4.200.0000.00716.82
7.4.160.0060.00916.71
7.4.150.0140.00617.40
7.4.140.0130.00617.86
7.4.130.0080.01316.75
7.4.120.0060.01316.70
7.4.110.0000.01616.54
7.4.100.0110.00716.73
7.4.90.0060.01216.81
7.4.80.0090.01219.39
7.4.70.0030.01516.78
7.4.60.0110.00716.83
7.4.50.0030.00516.66
7.4.40.0130.00316.66
7.4.30.0070.01016.83
7.4.00.0120.00615.41
7.3.330.0020.00213.26
7.3.320.0020.00213.39
7.3.310.0040.00416.35
7.3.300.0000.00716.47
7.3.290.0100.00616.48
7.3.280.0060.01216.43
7.3.270.0120.00617.40
7.3.260.0090.00916.72
7.3.250.0030.01316.49
7.3.240.0090.00916.68
7.3.230.0080.01116.57
7.3.210.0100.00716.57
7.3.200.0060.01119.39
7.3.190.0040.01516.73
7.3.180.0140.00316.61
7.3.170.0130.00316.90
7.3.160.0100.00616.51
7.2.330.0100.00716.83
7.2.320.0080.01116.70
7.2.310.0040.01216.94
7.2.300.0120.00416.61
7.2.290.0040.01317.03
7.2.00.0080.00419.79
7.1.100.0030.00918.31
7.1.70.0040.00417.15
7.1.60.0100.01419.40
7.1.50.0070.02117.14
7.1.00.0030.07722.33
7.0.200.0070.00317.00
7.0.140.0000.07721.98
7.0.60.0130.04719.89
7.0.50.0130.07317.84
7.0.40.0100.08720.12
7.0.30.0030.04320.18
7.0.20.0300.04320.04
7.0.10.0100.08020.20
7.0.00.0130.06020.19
5.6.280.0030.07320.82
5.6.210.0070.07720.56
5.6.200.0030.04018.16
5.6.190.0130.08320.61
5.6.180.0200.05020.40
5.6.170.0170.05720.61
5.6.160.0070.04020.72
5.6.150.0100.07718.21
5.6.140.0070.04718.12
5.6.130.0100.05718.10
5.6.120.0130.04721.03
5.6.110.0070.06321.08
5.6.100.0070.08021.13
5.6.90.0070.06020.96
5.6.80.0100.08020.38
5.5.350.3600.04320.43
5.5.340.0170.04718.02
5.5.330.0000.04320.19
5.5.320.0270.06720.24
5.5.310.0230.04320.20
5.5.300.0030.04317.92
5.5.290.0070.03717.95
5.5.280.0100.08020.73
5.5.270.0100.08020.94
5.5.260.0100.08720.86
5.5.250.0070.08320.56
5.5.240.0130.06320.18
5.4.450.0230.04719.55
5.4.440.0330.06319.14
5.4.430.0300.07319.41
5.4.420.0270.04719.24
5.4.410.0370.06719.42
5.4.400.0330.04019.25
5.4.390.0330.06019.16
5.4.380.0230.07318.91
5.4.370.0370.05719.08
5.4.360.0130.05019.09
5.4.350.0270.06018.94
5.4.340.0230.07319.18
5.4.320.0330.06719.13
5.4.310.0400.06019.13
5.4.300.0300.03718.89
5.4.290.0230.07319.13
5.4.280.0270.06319.22
5.4.270.0200.04018.80
5.4.260.0230.06719.24
5.4.250.0370.05318.89
5.4.240.0300.04019.08
5.4.230.0300.07319.11
5.4.220.0170.04319.13
5.4.210.0230.06319.23
5.4.200.0270.04019.10
5.4.190.0230.03719.23
5.4.180.0270.05318.91
5.4.170.0230.04018.91
5.4.160.0270.07018.87
5.4.150.0270.07719.26
5.4.140.0200.05016.50
5.4.130.0270.06716.38
5.4.120.0300.05716.48
5.4.110.0300.06716.43
5.4.100.0230.05016.09
5.4.90.0270.05016.30
5.4.80.0200.03716.54
5.4.70.0230.04316.46
5.4.60.0270.05016.41
5.4.50.0270.04716.43
5.4.40.0270.03016.36
5.4.30.0200.03716.35
5.4.20.0200.03716.41
5.4.10.0330.07016.43
5.4.00.0270.03315.68
5.3.290.0170.04014.62
5.3.280.0200.04714.46
5.3.270.0130.04314.45
5.3.260.0170.04014.44
5.3.250.0130.04014.45
5.3.240.0270.06714.56
5.3.230.0330.06714.66
5.3.220.0270.05714.52
5.3.210.0230.03714.41
5.3.200.0230.07014.40
5.3.190.0230.04014.58
5.3.180.0300.04014.44
5.3.170.0200.03714.42
5.3.160.0130.04014.61
5.3.150.0200.03714.41
5.3.140.0230.03314.42
5.3.130.0300.04314.46
5.3.120.0430.05714.50
5.3.110.0270.04714.39
5.3.100.0130.04313.88
5.3.90.0270.04013.96
5.3.80.0270.05014.06
5.3.70.0230.03713.80
5.3.60.0130.04713.95
5.3.50.0330.04713.88
5.3.40.0230.06713.78
5.3.30.0200.04013.86
5.3.20.0130.07313.65
5.3.10.0130.04713.46
5.3.00.0270.06013.56
5.2.170.0130.03011.41
5.2.160.0200.05011.41
5.2.150.0130.06711.41
5.2.140.0200.05711.41
5.2.130.0170.03311.41
5.2.120.0130.03011.41
5.2.110.0170.02711.41
5.2.100.0200.02311.41
5.2.90.0170.03011.41
5.2.80.0200.02711.41
5.2.70.0270.02711.41
5.2.60.0130.03311.41
5.2.50.0100.04011.41
5.2.40.0030.03311.41
5.2.30.0170.02311.41
5.2.20.0130.03311.41
5.2.10.0130.03311.41
5.2.00.0070.03711.41
5.1.60.0230.02711.41
5.1.50.0130.02711.41
5.1.40.0170.02011.41
5.1.30.0170.02011.41
5.1.20.0170.02011.41
5.1.10.0130.02711.41
5.1.00.0170.02711.41
5.0.50.0100.02011.41
5.0.40.0130.01711.41
5.0.30.0030.03311.41
5.0.20.0070.02311.41
5.0.10.0030.02011.41
5.0.00.0100.02711.41
4.4.90.0070.01311.41
4.4.80.0170.00711.41
4.4.70.0030.01711.41
4.4.60.0030.01711.41
4.4.50.0030.01711.41
4.4.40.0030.02711.41
4.4.30.0030.01711.41
4.4.20.0000.02011.41
4.4.10.0030.01711.41
4.4.00.0030.03011.41
4.3.110.0030.01711.41
4.3.100.0070.01311.41
4.3.90.0100.01311.41
4.3.80.0070.02311.41
4.3.70.0000.01711.41
4.3.60.0070.01311.41
4.3.50.0100.01011.41
4.3.40.0030.02711.41
4.3.30.0030.01711.41
4.3.20.0000.02011.41
4.3.10.0030.03311.41
4.3.00.0000.01711.41

preferences:
42.98 ms | 401 KiB | 5 Q