3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2014-12-01'); $start->modify('first day of this month'); $end = new DateTime('2015-08-01'); $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.0140.00018.43
8.3.50.0220.01022.92
8.3.40.0090.00619.09
8.3.30.0120.00319.20
8.3.20.0030.00520.36
8.3.10.0040.00423.35
8.3.00.0050.00319.51
8.2.180.0090.00616.88
8.2.170.0100.00722.96
8.2.160.0130.00720.53
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00721.00
8.2.110.0060.00320.47
8.2.100.0190.00017.84
8.2.90.0090.00019.36
8.2.80.0050.00317.97
8.2.70.0090.00017.88
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0040.00418.34
8.2.30.0000.00818.20
8.2.20.0000.00718.01
8.2.10.0040.00418.17
8.2.00.0030.00618.05
8.1.280.0140.00425.92
8.1.270.0030.00624.09
8.1.260.0050.00226.35
8.1.250.0050.00228.09
8.1.240.0090.00023.97
8.1.230.0080.00419.12
8.1.220.0050.00317.78
8.1.210.0000.00818.77
8.1.200.0070.00417.60
8.1.190.0040.00417.48
8.1.180.0040.00418.10
8.1.170.0040.00718.84
8.1.160.0040.00421.97
8.1.150.0000.00819.03
8.1.140.0040.00817.59
8.1.130.0000.00818.03
8.1.120.0000.00817.69
8.1.110.0050.00217.69
8.1.100.0000.00717.70
8.1.90.0040.00417.70
8.1.80.0040.00317.76
8.1.70.0030.00317.68
8.1.60.0040.00417.66
8.1.50.0000.00817.66
8.1.40.0090.00017.60
8.1.30.0000.00817.82
8.1.20.0020.00517.77
8.1.10.0040.00417.77
8.1.00.0040.00417.77
8.0.300.0060.00318.77
8.0.290.0040.00417.00
8.0.280.0080.00018.51
8.0.270.0040.00417.32
8.0.260.0030.00317.31
8.0.250.0030.00317.11
8.0.240.0060.00017.30
8.0.230.0070.00017.20
8.0.220.0030.00317.12
8.0.210.0060.00017.09
8.0.200.0040.00417.29
8.0.190.0040.00417.27
8.0.180.0080.00017.16
8.0.170.0050.00217.18
8.0.160.0050.00217.29
8.0.150.0070.00016.99
8.0.140.0000.00717.07
8.0.130.0030.00513.46
8.0.120.0050.00317.09
8.0.110.0090.00017.12
8.0.100.0070.00017.03
8.0.90.0040.00417.15
8.0.80.0090.00617.16
8.0.70.0050.00317.02
8.0.60.0050.00317.20
8.0.50.0040.00417.14
8.0.30.0050.01517.45
8.0.20.0160.00317.43
8.0.10.0040.00417.39
8.0.00.0120.00916.97
7.4.330.0000.00715.00
7.4.320.0060.00016.80
7.4.300.0000.00816.71
7.4.290.0040.00416.65
7.4.280.0050.00316.72
7.4.270.0040.00416.77
7.4.260.0050.00316.83
7.4.250.0000.00716.77
7.4.240.0040.00416.81
7.4.230.0040.00416.90
7.4.220.0130.00616.85
7.4.210.0060.00916.82
7.4.200.0080.00016.84
7.4.160.0040.01216.59
7.4.150.0110.00617.40
7.4.140.0050.01117.86
7.4.130.0060.01316.61
7.4.120.0080.00816.59
7.4.110.0160.00016.73
7.4.100.0120.00416.48
7.4.90.0030.01716.85
7.4.80.0160.00319.39
7.4.70.0120.00416.96
7.4.60.0130.00916.65
7.4.50.0040.00416.46
7.4.40.0070.01016.88
7.4.30.0090.00816.64
7.4.00.0080.00914.97
7.3.330.0060.00013.29
7.3.320.0000.00513.34
7.3.310.0070.00016.57
7.3.300.0000.00716.38
7.3.290.0120.00316.52
7.3.280.0070.01116.47
7.3.270.0060.01217.40
7.3.260.0110.00816.61
7.3.250.0110.00616.61
7.3.240.0090.00916.68
7.3.230.0110.00616.50
7.3.210.0080.01416.59
7.3.200.0160.00719.39
7.3.190.0070.01316.47
7.3.180.0120.00416.72
7.3.170.0090.00916.49
7.3.160.0080.00916.73
7.3.120.0070.01015.88
7.3.110.0080.00915.82
7.3.100.0080.00415.64
7.3.90.0060.00915.81
7.3.80.0110.00315.73
7.3.70.0050.00915.71
7.3.60.0050.00915.80
7.3.50.0040.00815.69
7.3.40.0050.00915.65
7.3.30.0040.01015.78
7.3.20.0040.00616.96
7.3.10.0110.00616.83
7.3.00.0090.00616.65
7.2.330.0090.00916.99
7.2.320.0090.01516.88
7.2.310.0040.01516.82
7.2.300.0090.00916.66
7.2.290.0030.01316.85
7.2.250.0100.00915.27
7.2.240.0050.01115.93
7.2.230.0060.01015.86
7.2.220.0060.01216.01
7.2.210.0050.00715.96
7.2.200.0080.00915.92
7.2.190.0050.00815.95
7.2.180.0060.00715.86
7.2.170.0060.00815.87
7.2.160.0090.00617.15
7.2.150.0090.00617.35
7.2.140.0080.00817.15
7.2.130.0130.00716.97
7.2.120.0100.00917.09
7.2.110.0120.00717.06
7.2.100.0100.00617.09
7.2.90.0100.00916.99
7.2.80.0070.01216.96
7.2.70.0140.00717.18
7.2.60.0060.00916.99
7.2.50.0110.00616.81
7.2.40.0090.01017.09
7.2.30.0130.00717.03
7.2.20.0110.00617.07
7.2.10.0090.00916.87
7.2.00.0070.00717.79
7.1.330.0080.00616.38
7.1.320.0050.01016.43
7.1.310.0040.01116.24
7.1.300.0080.00616.41
7.1.290.0020.01116.26
7.1.280.0040.01016.35
7.1.270.0050.00916.37
7.1.260.0060.00616.25
7.1.250.0080.01316.10
7.1.200.0030.00815.80
7.1.100.0030.00917.92
7.1.70.0050.00317.45
7.1.60.0090.00619.40
7.1.50.0040.01816.88
7.1.00.0100.07022.31
7.0.200.0110.00416.95
7.0.140.0000.07722.00
7.0.60.0130.07719.87
7.0.50.0200.07317.82
7.0.40.0100.06720.40
7.0.30.0230.05020.02
7.0.20.0300.08020.16
7.0.10.0130.05720.00
7.0.00.0130.06320.12
5.6.280.0100.06320.82
5.6.210.0070.06020.71
5.6.200.0170.07318.15
5.6.190.0070.04320.63
5.6.180.0300.04020.41
5.6.170.0400.07320.71
5.6.160.0100.04020.52
5.6.150.0070.06318.13
5.6.140.0030.05018.18
5.6.130.0070.08018.07
5.6.120.0070.08020.96
5.6.110.0100.06721.05
5.6.100.0030.04021.00
5.6.90.0000.04320.93
5.6.80.0000.04320.43
5.5.350.0030.07020.39
5.5.340.0030.04017.95
5.5.330.0100.06720.37
5.5.320.0300.07020.34
5.5.310.0330.07320.27
5.5.300.0100.07018.05
5.5.290.0070.07017.97
5.5.280.0030.08320.97
5.5.270.0200.06720.96
5.5.260.0030.04320.77
5.5.250.0030.04320.79
5.5.240.0130.04320.15
5.4.450.0300.04019.26
5.4.440.0230.04319.41
5.4.430.0400.04019.42
5.4.420.0370.04319.57
5.4.410.0270.05019.33
5.4.400.0430.04319.23
5.4.390.0230.04019.07
5.4.380.0800.06018.61
5.4.370.0830.05718.57
5.4.360.0570.06318.50
5.4.350.1230.06718.69
5.4.340.0700.07018.57
5.4.320.0060.03812.45
5.4.310.0050.04012.45
5.4.300.0060.03812.45
5.4.290.0090.03612.45
5.4.280.0070.03412.35
5.4.270.0050.03912.35
5.4.260.0070.03712.35
5.4.250.0040.04012.35
5.4.240.0090.03512.35
5.4.230.0090.03412.34
5.4.220.0080.03412.34
5.4.210.0090.03212.34
5.4.200.0030.04112.34
5.4.190.0080.03312.34
5.4.180.0060.03512.34
5.4.170.0120.03812.35
5.4.160.0090.03612.34
5.4.150.0070.04312.34
5.4.140.0070.04912.03
5.4.130.0070.04612.01
5.4.120.0060.04911.97
5.4.110.0070.04811.96
5.4.100.0060.03411.96
5.4.90.0070.03711.96
5.4.80.0040.04111.97
5.4.70.0030.03811.96
5.4.60.0030.03711.96
5.4.50.0050.03511.96
5.4.40.0070.03811.95
5.4.30.0070.03611.95
5.4.20.0060.03511.95
5.4.10.0040.03711.95
5.4.00.0060.03611.44
5.3.290.0040.04312.80
5.3.280.0080.03712.71
5.3.270.0070.03912.72
5.3.260.0050.04012.72
5.3.250.0050.03812.72
5.3.240.0090.04212.72
5.3.230.0060.03812.71
5.3.220.0030.04012.68
5.3.210.0060.04012.68
5.3.200.0040.03912.68
5.3.190.0050.04012.68
5.3.180.0060.03612.68
5.3.170.0070.03612.67
5.3.160.0050.04312.67
5.3.150.0080.03512.68
5.3.140.0070.03712.66
5.3.130.0050.04012.66
5.3.120.0060.03812.66
5.3.110.0090.03512.66
5.3.100.0060.03612.12
5.3.90.0040.03712.09
5.3.80.0090.03312.07
5.3.70.0070.04012.08
5.3.60.0040.03712.07
5.3.50.0030.03812.00
5.3.40.0100.03212.00
5.3.30.0060.03611.96
5.3.20.0060.03511.72
5.3.10.0070.03411.69
5.3.00.0040.03811.68
5.2.170.0040.0319.19
5.2.160.0040.0309.19
5.2.150.0060.0349.19
5.2.140.0050.0339.18
5.2.130.0070.0279.15
5.2.120.0020.0319.14
5.2.110.0040.0309.15
5.2.100.0050.0339.14
5.2.90.0090.0319.15
5.2.80.0080.0269.14
5.2.70.0030.0319.14
5.2.60.0020.0329.09
5.2.50.0060.0289.07
5.2.40.0040.0289.04
5.2.30.0060.0279.02
5.2.20.0070.0259.01
5.2.10.0070.0258.93
5.2.00.0050.0288.79
5.1.60.0040.0248.07
5.1.50.0020.0278.06
5.1.40.0060.0238.04
5.1.30.0060.0248.40
5.1.20.0040.0268.42
5.1.10.0050.0268.14
5.1.00.0010.0288.14
5.0.50.0010.0236.61
5.0.40.0020.0206.48
5.0.30.0040.0316.29
5.0.20.0010.0226.27
5.0.10.0030.0206.24
5.0.00.0010.0326.23
4.4.90.0020.0164.77
4.4.80.0030.0154.75
4.4.70.0030.0184.75
4.4.60.0050.0134.76
4.4.50.0030.0164.77
4.4.40.0040.0244.70
4.4.30.0040.0144.76
4.4.20.0040.0144.85
4.4.10.0020.0164.84
4.4.00.0020.0254.76
4.3.110.0050.0134.66
4.3.100.0050.0124.67
4.3.90.0010.0164.63
4.3.80.0050.0224.59
4.3.70.0030.0144.63
4.3.60.0020.0154.62
4.3.50.0060.0124.63
4.3.40.0020.0254.53
4.3.30.0020.0163.29
4.3.20.0020.0163.26
4.3.10.0020.0163.22
4.3.00.0030.01715.98

preferences:
43.89 ms | 401 KiB | 5 Q