3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2014-10-15'); $start->modify('first day of this month'); $end = new DateTime('2014-11-07'); $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.0070.01018.68
8.3.50.0190.00621.33
8.3.40.0120.00318.78
8.3.30.0040.01119.00
8.3.20.0000.00720.16
8.3.10.0050.00323.61
8.3.00.0000.00819.50
8.2.180.0150.00316.88
8.2.170.0110.00422.96
8.2.160.0030.01120.54
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0030.00626.16
8.2.120.0080.00021.93
8.2.110.0030.00620.52
8.2.100.0060.00618.34
8.2.90.0030.00619.16
8.2.80.0000.00818.00
8.2.70.0040.00418.00
8.2.60.0040.00818.05
8.2.50.0040.00418.07
8.2.40.0060.00319.88
8.2.30.0000.00818.34
8.2.20.0040.00417.94
8.2.10.0040.00418.15
8.2.00.0040.00417.89
8.1.280.0150.00325.92
8.1.270.0040.00422.03
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00523.89
8.1.230.0070.00319.29
8.1.220.0030.00517.79
8.1.210.0000.00818.77
8.1.200.0040.00417.25
8.1.190.0000.00817.25
8.1.180.0070.00018.10
8.1.170.0030.00518.71
8.1.160.0040.00421.97
8.1.150.0000.00719.03
8.1.140.0000.00817.72
8.1.130.0030.00317.93
8.1.120.0040.00417.73
8.1.110.0040.00417.68
8.1.100.0030.00417.70
8.1.90.0040.00417.80
8.1.80.0030.00717.72
8.1.70.0040.00417.60
8.1.60.0000.00817.80
8.1.50.0040.00417.72
8.1.40.0080.00017.70
8.1.30.0060.00317.82
8.1.20.0040.00417.81
8.1.10.0000.00817.77
8.1.00.0040.00417.74
8.0.300.0020.00518.77
8.0.290.0000.00717.00
8.0.280.0040.00418.48
8.0.270.0040.00417.28
8.0.260.0030.00317.27
8.0.250.0000.00717.24
8.0.240.0030.00317.12
8.0.230.0000.00717.11
8.0.220.0070.00017.13
8.0.210.0050.00317.04
8.0.200.0030.00317.19
8.0.190.0040.00417.14
8.0.180.0090.00017.13
8.0.170.0070.00017.23
8.0.160.0030.00517.08
8.0.150.0000.00717.13
8.0.140.0000.00717.11
8.0.130.0040.00413.54
8.0.120.0000.00817.21
8.0.110.0050.00217.16
8.0.100.0040.00417.05
8.0.90.0070.00017.04
8.0.80.0060.00917.14
8.0.70.0000.00717.23
8.0.60.0040.00416.98
8.0.50.0040.00417.15
8.0.30.0060.01517.38
8.0.20.0070.01617.40
8.0.10.0000.00817.29
8.0.00.0050.01217.08
7.4.330.0000.00515.02
7.4.320.0040.00416.69
7.4.300.0000.00616.86
7.4.290.0080.00016.72
7.4.280.0030.00616.70
7.4.270.0030.00316.62
7.4.260.0030.00716.67
7.4.250.0000.00716.70
7.4.240.0000.00716.81
7.4.230.0000.00616.81
7.4.220.0070.01116.75
7.4.210.0080.00616.85
7.4.200.0030.00616.62
7.4.160.0030.01316.73
7.4.150.0070.01017.40
7.4.140.0070.01117.86
7.4.130.0110.00716.80
7.4.120.0110.00616.63
7.4.110.0120.00416.58
7.4.100.0080.00816.59
7.4.90.0100.00716.80
7.4.80.0130.00719.39
7.4.70.0080.01216.66
7.4.60.0100.00716.63
7.4.50.0080.00016.83
7.4.40.0160.00016.64
7.4.30.0030.01616.77
7.4.00.0070.00915.20
7.3.330.0060.00013.20
7.3.320.0000.00513.30
7.3.310.0040.00416.29
7.3.300.0030.00316.45
7.3.290.0130.00416.49
7.3.280.0090.00816.44
7.3.270.0100.00717.40
7.3.260.0070.01016.76
7.3.250.0100.00816.70
7.3.240.0060.01216.82
7.3.230.0130.00616.79
7.3.210.0080.00816.57
7.3.200.0140.00719.39
7.3.190.0070.01016.82
7.3.180.0030.01216.47
7.3.170.0090.01016.69
7.3.160.0090.01216.70
7.3.120.0090.00915.08
7.3.110.0050.00714.98
7.3.100.0110.00414.84
7.3.90.0140.00315.08
7.3.80.0030.00914.93
7.3.70.0060.00914.92
7.3.60.0040.01115.26
7.3.50.0130.00315.20
7.3.40.0160.00314.85
7.3.30.0060.01214.84
7.3.20.0030.00616.70
7.3.10.0090.00316.63
7.3.00.0040.00816.70
7.2.330.0090.00817.00
7.2.320.0170.00416.96
7.2.310.0060.01216.68
7.2.300.0070.01317.07
7.2.290.0060.01616.91
7.2.250.0070.01115.34
7.2.240.0100.01015.50
7.2.230.0090.00615.46
7.2.220.0030.01415.30
7.2.210.0040.00815.16
7.2.200.0030.01315.07
7.2.190.0070.00715.41
7.2.180.0100.00715.50
7.2.170.0030.01015.39
7.1.330.0040.01116.21
7.1.320.0070.00415.86
7.1.310.0030.01016.23
7.1.300.0030.01316.02
7.1.290.0060.00915.77
7.1.280.0040.01416.04
7.1.270.0030.00816.09
7.1.260.0040.00715.85
7.1.70.0040.00817.45
7.1.60.0110.01419.11
7.1.50.0070.01717.04
7.1.00.0100.07022.31
7.0.200.0070.00017.10
7.0.140.0030.07721.95
7.0.60.0070.08719.86
7.0.50.0070.07717.66
7.0.40.0200.05720.24
7.0.30.0270.05720.18
7.0.20.0230.04720.00
7.0.10.0170.08020.19
7.0.00.0030.04319.99
5.6.280.0070.07020.86
5.6.210.0130.08020.69
5.6.200.0100.08718.15
5.6.190.0030.09320.66
5.6.180.3700.03020.55
5.6.170.0230.07720.42
5.6.160.0070.03720.70
5.6.150.0070.08718.12
5.6.140.0000.05318.09
5.6.130.0070.07318.18
5.6.120.0100.03721.07
5.6.110.0070.06321.01
5.6.100.0170.07020.97
5.6.90.0100.04720.96
5.6.80.0070.07020.37
5.6.70.4330.04320.36
5.5.350.0230.05720.38
5.5.340.0030.05017.91
5.5.330.0130.05020.29
5.5.320.0170.04720.26
5.5.310.0270.07720.26
5.5.300.0100.07318.02
5.5.290.0130.05017.84
5.5.280.0100.07020.76
5.5.270.0100.04320.96
5.5.260.0130.05720.79
5.5.250.0130.05320.71
5.5.240.0130.07720.25
5.4.450.1230.04319.55
5.4.440.0500.06719.57
5.4.430.0370.05719.48
5.4.420.0630.00019.31
5.4.410.0630.00019.52
5.4.400.0630.00019.16
5.4.390.0630.00019.18
5.4.380.0670.00018.95
5.4.370.0630.00019.13
5.4.360.0830.00019.05
5.4.350.0670.00019.07
5.4.340.0030.03711.97
5.4.320.0070.03412.46
5.4.310.0070.03612.45
5.4.300.0060.03812.46
5.4.290.0060.03812.45
5.4.280.0060.03512.35
5.4.270.0040.03912.35
5.4.260.0050.03712.35
5.4.250.0040.03912.35
5.4.240.0030.03912.35
5.4.230.0090.03412.34
5.4.220.0080.03412.34
5.4.210.0050.03412.34
5.4.200.0030.03912.34
5.4.190.0060.04412.34
5.4.180.0020.04412.34
5.4.170.0090.03812.35
5.4.160.0090.03312.35
5.4.150.0080.03312.34
5.4.140.0050.03712.03
5.4.130.0090.03112.02
5.4.120.0050.03511.97
5.4.110.0060.03411.97
5.4.100.0040.03511.97
5.4.90.0060.03511.97
5.4.80.0030.04011.97
5.4.70.0040.03811.96
5.4.60.0110.03711.96
5.4.50.0120.03511.96
5.4.40.0060.03411.95
5.4.30.0040.03811.95
5.4.20.0050.03511.95
5.4.10.0060.03611.95
5.4.00.0090.03311.44
5.3.290.0020.04212.80
5.3.280.0080.03612.71
5.3.270.0100.03712.72
5.3.260.0070.04312.72
5.3.250.0050.03712.71
5.3.240.0050.04212.71
5.3.230.0040.03912.70
5.3.220.0060.04312.68
5.3.210.0040.04012.68
5.3.200.0050.03712.68
5.3.190.0060.04012.68
5.3.180.0050.04012.68
5.3.170.0030.04012.67
5.3.160.0070.03512.67
5.3.150.0080.03912.67
5.3.140.0060.05412.66
5.3.130.0050.03812.66
5.3.120.0100.04112.66
5.3.110.0040.04312.66
5.3.100.0080.04412.12
5.3.90.0080.03912.08
5.3.80.0050.03612.07
5.3.70.0080.04012.07
5.3.60.0060.03612.06
5.3.50.0020.03912.00
5.3.40.0030.03812.00
5.3.30.0080.04211.95
5.3.20.0040.03711.72
5.3.10.0070.03411.69
5.3.00.0070.03611.68
5.2.170.0050.0389.19
5.2.160.0050.0289.19
5.2.150.0080.0319.19
5.2.140.0070.0279.18
5.2.130.0060.0279.15
5.2.120.0070.0269.14
5.2.110.0090.0439.15
5.2.100.0080.0329.15
5.2.90.0060.0289.14
5.2.80.0050.0309.14
5.2.70.0060.0309.14
5.2.60.0050.0309.10
5.2.50.0060.0299.06
5.2.40.0040.0299.04
5.2.30.0050.0349.02
5.2.20.0050.0309.01
5.2.10.0070.0318.93
5.2.00.0080.0288.79
5.1.60.0020.0268.07
5.1.50.0040.0258.07
5.1.40.0060.0228.04
5.1.30.0060.0248.40
5.1.20.0030.0278.42
5.1.10.0030.0288.14
5.1.00.0050.0248.14
5.0.50.0060.0176.62
5.0.40.0050.0186.48
5.0.30.0020.0416.29
5.0.20.0040.0216.26
5.0.10.0050.0226.24
5.0.00.0020.0316.23
4.4.90.0040.0194.77
4.4.80.0010.0204.75
4.4.70.0050.0164.76
4.4.60.0010.0184.75
4.4.50.0030.0174.77
4.4.40.0060.0234.71
4.4.30.0030.0164.76
4.4.20.0040.0154.84
4.4.10.0040.0164.84
4.4.00.0000.0284.76
4.3.110.0020.0164.67
4.3.100.0020.0224.66
4.3.90.0050.0124.63
4.3.80.0050.0304.58
4.3.70.0010.0174.63
4.3.60.0010.0164.63
4.3.50.0030.0174.62
4.3.40.0020.0254.54
4.3.30.0010.0183.29
4.3.20.0030.0153.26
4.3.10.0020.0203.22
4.3.00.0300.01312.27

preferences:
42.89 ms | 401 KiB | 5 Q