3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2014-12-22'); $start->modify('first day of this month'); $end = new DateTime('2015-05-22'); $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.0180.00316.75
8.3.50.0090.00923.05
8.3.40.0150.00019.09
8.3.30.0060.00819.21
8.3.20.0040.00420.35
8.3.10.0050.00323.84
8.3.00.0000.00819.50
8.2.180.0100.01016.63
8.2.170.0160.00622.96
8.2.160.0070.00720.46
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0110.00426.16
8.2.120.0060.00320.98
8.2.110.0060.00322.15
8.2.100.0110.00017.97
8.2.90.0050.00319.35
8.2.80.0060.00317.97
8.2.70.0030.00617.86
8.2.60.0040.00417.68
8.2.50.0000.00818.07
8.2.40.0050.00318.16
8.2.30.0040.00418.10
8.2.20.0040.00417.97
8.2.10.0040.00418.21
8.2.00.0000.00718.02
8.1.280.0150.00025.92
8.1.270.0040.00423.96
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00718.72
8.1.230.0090.00319.22
8.1.220.0090.00017.79
8.1.210.0030.00518.77
8.1.200.0000.00917.35
8.1.190.0040.00417.60
8.1.180.0030.00518.10
8.1.170.0090.00518.49
8.1.160.0000.00721.96
8.1.150.0040.00419.07
8.1.140.0080.00417.80
8.1.130.0070.00017.98
8.1.120.0030.00517.77
8.1.110.0050.00317.71
8.1.100.0050.00217.71
8.1.90.0030.00717.71
8.1.80.0050.00317.64
8.1.70.0030.00317.71
8.1.60.0060.00317.73
8.1.50.0030.00617.71
8.1.40.0060.00317.76
8.1.30.0040.00417.78
8.1.20.0040.00417.80
8.1.10.0060.00317.68
8.1.00.0030.00617.73
8.0.300.0070.00018.77
8.0.290.0040.00417.00
8.0.280.0000.00718.57
8.0.270.0000.00717.29
8.0.260.0000.00617.41
8.0.250.0030.00317.11
8.0.240.0070.00017.27
8.0.230.0070.00017.11
8.0.220.0110.00017.09
8.0.210.0000.00617.16
8.0.200.0030.00517.18
8.0.190.0030.00317.19
8.0.180.0040.00417.11
8.0.170.0000.00717.08
8.0.160.0000.00717.16
8.0.150.0000.00817.05
8.0.140.0000.00717.00
8.0.130.0080.00013.52
8.0.120.0040.00417.14
8.0.110.0040.00417.14
8.0.100.0070.00017.05
8.0.90.0040.00417.05
8.0.80.0060.00917.21
8.0.70.0030.00716.98
8.0.60.0000.00817.23
8.0.50.0040.00417.05
8.0.30.0120.01117.22
8.0.20.0170.00717.54
8.0.10.0000.00717.08
8.0.00.0100.01216.96
7.4.330.0030.00315.00
7.4.320.0030.00316.82
7.4.300.0070.00016.63
7.4.290.0000.00716.61
7.4.280.0060.00316.85
7.4.270.0040.00416.73
7.4.260.0000.00716.71
7.4.250.0000.00716.68
7.4.240.0000.00716.70
7.4.230.0050.00216.81
7.4.220.0070.01116.76
7.4.210.0070.01316.61
7.4.200.0000.00716.79
7.4.160.0060.01216.66
7.4.150.0120.00817.40
7.4.140.0070.01117.86
7.4.130.0120.00516.67
7.4.120.0100.01216.71
7.4.110.0090.00816.66
7.4.100.0100.01016.61
7.4.90.0070.01116.50
7.4.80.0110.01119.39
7.4.70.0070.01016.67
7.4.60.0130.00316.71
7.4.50.0030.00616.80
7.4.40.0190.00316.64
7.4.30.0040.01216.63
7.4.00.0000.01415.38
7.3.330.0000.00713.40
7.3.320.0000.00613.30
7.3.310.0000.00716.29
7.3.300.0030.00316.27
7.3.290.0040.01216.53
7.3.280.0050.01116.43
7.3.270.0090.00917.40
7.3.260.0150.00316.36
7.3.250.0120.00516.67
7.3.240.0100.00716.52
7.3.230.0040.01316.49
7.3.210.0160.00016.77
7.3.200.0130.00919.39
7.3.190.0060.01216.77
7.3.180.0100.00716.50
7.3.170.0100.00716.80
7.3.160.0090.01216.86
7.2.330.0170.00017.03
7.2.320.0150.00317.01
7.2.310.0090.01216.95
7.2.300.0060.01617.00
7.2.290.0100.00716.72
7.2.80.0060.00616.78
7.2.60.0080.00617.05
7.2.50.0080.00817.05
7.1.200.0070.00716.10
7.1.70.0030.00717.20
7.1.60.0030.01719.40
7.1.50.0040.02117.20
7.1.00.0100.07022.45
7.0.200.0070.00416.82
7.0.140.0100.06722.05
7.0.60.0000.04319.85
7.0.50.0070.04717.81
7.0.40.0130.05020.24
7.0.30.0330.07320.21
7.0.20.0270.07720.12
7.0.10.0070.06020.18
7.0.00.0100.08020.00
5.6.280.0000.07721.04
5.6.210.0070.08320.69
5.6.200.0000.04318.13
5.6.190.0070.08720.45
5.6.180.0270.08020.46
5.6.170.0200.05020.53
5.6.160.0200.07020.38
5.6.150.0030.04718.23
5.6.140.0030.08718.11
5.6.130.0100.07718.10
5.6.120.0030.04320.89
5.6.110.0100.07721.07
5.6.100.0030.07020.88
5.6.90.0070.08320.96
5.6.80.0100.04320.35
5.5.350.0000.04320.45
5.5.340.0170.07017.93
5.5.330.0000.05320.21
5.5.320.0470.06320.31
5.5.310.0130.04020.28
5.5.300.0030.04717.91
5.5.290.0100.08318.01
5.5.280.0100.05020.87
5.5.270.0070.04020.72
5.5.260.0130.06020.88
5.5.250.0070.08020.57
5.5.240.0170.04020.18
5.4.450.0230.05719.43
5.4.440.0270.07719.21
5.4.430.0170.04319.41
5.4.420.0230.05319.43
5.4.410.0270.04719.43
5.4.400.0200.07718.89
5.4.390.0370.06318.92
5.4.380.0270.06719.12
5.4.370.0270.03318.78
5.4.360.0230.07319.22
5.4.350.0200.04019.08
5.4.340.0270.05019.14
5.4.320.0300.03718.94
5.4.310.0270.04718.92
5.4.300.0370.06019.09
5.4.290.0200.04019.06
5.4.280.0270.07318.92
5.4.270.0370.05719.09
5.4.260.0230.06719.04
5.4.250.0200.07319.09
5.4.240.0330.05319.10
5.4.230.0330.06718.88
5.4.220.0300.03319.10
5.4.210.0330.06318.79
5.4.200.0230.03719.15
5.4.190.0270.03319.05
5.4.180.0300.07019.07
5.4.170.0200.05318.91
5.4.160.0200.05318.93
5.4.150.0200.04319.07
5.4.140.0170.04016.34
5.4.130.0230.07016.35
5.4.120.0230.04316.47
5.4.110.0200.04316.51
5.4.100.0300.04016.51
5.4.90.0230.03316.36
5.4.80.0270.04016.42
5.4.70.0330.05716.43
5.4.60.0200.05016.10
5.4.50.0400.03316.20
5.4.40.0300.05716.40
5.4.30.0270.03716.36
5.4.20.0270.05716.36
5.4.10.0300.05716.18
5.4.00.0330.03315.89
5.3.290.0270.07314.54
5.3.280.0270.05314.55
5.3.270.0270.06314.70
5.3.260.0330.04714.59
5.3.250.0230.07314.61
5.3.240.0230.07714.44
5.3.230.0230.03714.45
5.3.220.0270.05314.52
5.3.210.0270.03714.43
5.3.200.0270.06714.49
5.3.190.0300.07014.55
5.3.180.0330.05014.52
5.3.170.0270.08014.52
5.3.160.0330.04014.68
5.3.150.0230.04014.66
5.3.140.0230.06714.51
5.3.130.0230.04314.54
5.3.120.0170.04014.38
5.3.110.0300.06714.56
5.3.100.0300.04714.09
5.3.90.0370.06314.12
5.3.80.0270.05313.88
5.3.70.0200.05313.81
5.3.60.0170.04013.87
5.3.50.0330.06013.78
5.3.40.0300.06313.99
5.3.30.0230.04313.75
5.3.20.0300.05013.72
5.3.10.0200.07713.61
5.3.00.0300.06713.60
5.2.170.0170.04712.24
5.2.160.0170.04012.24
5.2.150.0230.04012.24
5.2.140.0270.04712.24
5.2.130.0170.05012.24
5.2.120.0330.04712.24
5.2.110.0230.05712.24
5.2.100.0270.05712.24
5.2.90.0200.04712.24
5.2.80.0270.05312.24
5.2.70.0270.03712.24
5.2.60.0230.05312.24
5.2.50.0300.05012.24
5.2.40.0170.05712.24
5.2.30.0230.05312.24
5.2.20.0200.05312.24
5.2.10.0170.06312.24
5.2.00.0130.06012.24
5.1.60.0300.02012.24
5.1.50.0170.04712.24
5.1.40.0170.05712.24
5.1.30.0230.04012.24
5.1.20.0200.03312.24
5.1.10.0100.03012.24
5.1.00.0170.04712.24
5.0.50.0100.03312.24
5.0.40.0130.02312.24
5.0.30.0100.06012.24
5.0.20.0170.03312.24
5.0.10.0100.03012.24
5.0.00.0100.03312.24
4.4.90.0100.03712.24
4.4.80.0130.03012.24
4.4.70.0130.03312.24
4.4.60.0170.01312.24
4.4.50.0100.02012.24
4.4.40.0070.05312.24
4.4.30.0070.03012.24
4.4.20.0070.03712.24
4.4.10.0070.02712.24
4.4.00.0070.03712.24
4.3.110.0100.02012.24
4.3.100.0100.03012.24
4.3.90.0070.02712.24
4.3.80.0070.03312.24
4.3.70.0070.01712.24
4.3.60.0070.01712.24
4.3.50.0070.01712.24
4.3.40.0100.04312.24
4.3.30.0030.01712.24
4.3.20.0030.03712.24
4.3.10.0070.02312.24
4.3.00.0030.02312.24

preferences:
58.37 ms | 400 KiB | 5 Q