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-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.0120.00316.75
8.3.50.0120.00422.93
8.3.40.0070.00719.01
8.3.30.0070.00718.81
8.3.20.0080.00020.30
8.3.10.0050.00323.55
8.3.00.0040.00419.50
8.2.180.0140.00716.50
8.2.170.0110.01122.96
8.2.160.0130.00020.40
8.2.150.0070.00024.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00421.09
8.2.110.0090.00020.88
8.2.100.0080.00418.09
8.2.90.0050.00318.00
8.2.80.0000.00919.21
8.2.70.0030.00717.88
8.2.60.0080.00017.88
8.2.50.0050.00318.07
8.2.40.0060.00317.97
8.2.30.0050.00218.20
8.2.20.0040.00417.95
8.2.10.0040.00418.32
8.2.00.0040.00417.95
8.1.280.0150.00025.92
8.1.270.0000.00823.95
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0070.00319.69
8.1.230.0060.00622.82
8.1.220.0040.00418.81
8.1.210.0090.00018.77
8.1.200.0060.00317.60
8.1.190.0000.00817.50
8.1.180.0000.00818.10
8.1.170.0000.01018.82
8.1.160.0000.00721.97
8.1.150.0040.00418.91
8.1.140.0050.00317.72
8.1.130.0070.00017.97
8.1.120.0000.00717.80
8.1.110.0030.00517.61
8.1.100.0040.00417.61
8.1.90.0060.00317.67
8.1.80.0050.00217.74
8.1.70.0030.00317.61
8.1.60.0040.00417.82
8.1.50.0000.00717.73
8.1.40.0030.00617.63
8.1.30.0040.00417.80
8.1.20.0000.00817.86
8.1.10.0050.00317.79
8.1.00.0050.00317.69
8.0.300.0040.00420.39
8.0.290.0000.00817.00
8.0.280.0060.00318.55
8.0.270.0070.00017.42
8.0.260.0000.00717.31
8.0.250.0030.00317.14
8.0.240.0050.00317.26
8.0.230.0030.00517.20
8.0.220.0000.00817.06
8.0.210.0020.00517.22
8.0.200.0000.00817.14
8.0.190.0070.00017.25
8.0.180.0060.00317.07
8.0.170.0040.00417.14
8.0.160.0000.00717.13
8.0.150.0040.00416.97
8.0.140.0040.00417.06
8.0.130.0050.00013.52
8.0.120.0080.00017.21
8.0.110.0070.00017.12
8.0.100.0040.00417.15
8.0.90.0040.00417.00
8.0.80.0120.00317.21
8.0.70.0040.00417.17
8.0.60.0040.00417.08
8.0.50.0000.00817.20
8.0.30.0140.00917.36
8.0.20.0100.00917.40
8.0.10.0000.00717.30
8.0.00.0100.01017.08
7.4.330.0030.00315.20
7.4.320.0000.00716.72
7.4.300.0000.00816.73
7.4.290.0000.00716.72
7.4.280.0040.00416.72
7.4.270.0040.00416.68
7.4.260.0030.00316.61
7.4.250.0000.00716.79
7.4.240.0010.00616.69
7.4.230.0030.00516.89
7.4.220.0120.00616.91
7.4.210.0000.01516.71
7.4.200.0030.00316.60
7.4.160.0100.00716.76
7.4.150.0140.00417.40
7.4.140.0110.00917.86
7.4.130.0130.00516.68
7.4.120.0080.00916.67
7.4.110.0110.00616.77
7.4.100.0110.01016.91
7.4.90.0090.01216.67
7.4.80.0080.00819.39
7.4.70.0070.01316.73
7.4.60.0140.00616.86
7.4.50.0040.00416.62
7.4.40.0080.00716.92
7.4.30.0070.01016.84
7.4.00.0040.01215.36
7.3.330.0020.00413.22
7.3.320.0000.00513.37
7.3.310.0000.00716.30
7.3.300.0070.00016.47
7.3.290.0120.00316.42
7.3.280.0090.00816.43
7.3.270.0040.01417.40
7.3.260.0080.00916.53
7.3.250.0070.01116.54
7.3.240.0070.01316.61
7.3.230.0120.00616.50
7.3.210.0030.01316.53
7.3.200.0070.01319.39
7.3.190.0130.00816.54
7.3.180.0080.00816.89
7.3.170.0100.00616.74
7.3.160.0090.01016.59
7.2.330.0040.01516.86
7.2.320.0070.01416.79
7.2.310.0100.00716.63
7.2.300.0060.00916.83
7.2.290.0160.00316.98
7.2.00.0000.01319.52
7.1.200.0120.00316.08
7.1.100.0070.00718.50
7.1.70.0080.00317.47
7.1.60.0040.01619.40
7.1.50.0140.01017.04
7.1.00.0000.07722.44
7.0.200.0080.00416.95
7.0.140.0030.07322.16
7.0.60.0070.05020.04
7.0.50.0070.03717.83
7.0.40.0030.06020.40
7.0.30.0270.05020.34
7.0.20.0230.04020.01
7.0.10.0130.07319.98
7.0.00.0070.08320.16
5.6.280.0070.07021.07
5.6.210.0100.03720.74
5.6.200.0170.06718.22
5.6.190.0070.05720.44
5.6.180.0300.07720.36
5.6.170.0170.06320.38
5.6.160.0100.08020.71
5.6.150.0030.08718.11
5.6.140.0100.08318.20
5.6.130.0100.08018.18
5.6.120.0070.05321.14
5.6.110.0130.08021.01
5.6.100.0100.08020.97
5.6.90.0170.06720.98
5.6.80.0100.07720.52
5.5.350.0000.08320.44
5.5.340.0030.07017.98
5.5.330.0100.09020.19
5.5.320.0370.07720.20
5.5.310.0370.06720.23
5.5.300.0070.07317.98
5.5.290.0130.07018.02
5.5.280.0030.07720.84
5.5.270.0000.06020.82
5.5.260.0030.04320.79
5.5.250.0030.08720.58
5.5.240.0230.07720.36
5.4.450.0200.04319.50
5.4.440.0030.03719.39
5.4.430.0170.04319.41
5.4.420.0770.03319.48
5.4.410.0700.04019.01
5.4.400.0500.03319.14
5.4.390.0630.04019.16
5.4.380.1070.05018.68
5.4.370.0800.05718.70
5.4.360.0670.05718.73
5.4.350.1170.04318.68
5.4.340.0630.06018.67
5.4.320.0070.04812.46
5.4.310.0030.05512.45
5.4.300.0060.05012.46
5.4.290.0080.04712.46
5.4.280.0030.04012.35
5.4.270.0070.04912.35
5.4.260.0060.04712.35
5.4.250.0050.03812.35
5.4.240.0080.03612.35
5.4.230.0140.04612.34
5.4.220.0100.04912.34
5.4.210.0080.05112.34
5.4.200.0090.05312.34
5.4.190.0160.05812.34
5.4.180.0080.04312.34
5.4.170.0060.04612.35
5.4.160.0070.04712.34
5.4.150.0050.04512.34
5.4.140.0080.05112.02
5.4.130.0040.05212.02
5.4.120.0090.04111.98
5.4.110.0110.04411.97
5.4.100.0090.04411.97
5.4.90.0040.04211.97
5.4.80.0060.04011.97
5.4.70.0060.03611.96
5.4.60.0050.04111.96
5.4.50.0130.04411.96
5.4.40.0120.04611.95
5.4.30.0080.04811.95
5.4.20.0080.04111.95
5.4.10.0050.04911.95
5.4.00.0070.04211.44
5.3.290.0030.04712.80
5.3.280.0080.04812.71
5.3.270.0120.04612.73
5.3.260.0060.04212.71
5.3.250.0070.03812.72
5.3.240.0080.04212.72
5.3.230.0060.05212.71
5.3.220.0040.04312.68
5.3.210.0050.04212.68
5.3.200.0060.04012.68
5.3.190.0060.04012.68
5.3.180.0080.03712.67
5.3.170.0060.03712.67
5.3.160.0050.03812.67
5.3.150.0100.04212.68
5.3.140.0080.03512.66
5.3.130.0090.03712.66
5.3.120.0040.04212.66
5.3.110.0070.04412.66
5.3.100.0090.03712.12
5.3.90.0060.03912.09
5.3.80.0120.03812.07
5.3.70.0060.03812.07
5.3.60.0060.03612.07
5.3.50.0060.03812.00
5.3.40.0070.03712.00
5.3.30.0040.03911.95
5.3.20.0080.03711.72
5.3.10.0120.04211.69
5.3.00.0050.04111.68
5.2.170.0050.0399.19
5.2.160.0050.0409.19
5.2.150.0050.0439.19
5.2.140.0060.0439.18
5.2.130.0060.0419.15
5.2.120.0020.0429.14
5.2.110.0070.0409.15
5.2.100.0050.0459.15
5.2.90.0070.0429.15
5.2.80.0080.0409.14
5.2.70.0040.0369.14
5.2.60.0060.0309.10
5.2.50.0040.0349.07
5.2.40.0100.0249.04
5.2.30.0070.0329.01
5.2.20.0090.0359.00
5.2.10.0070.0368.93
5.2.00.0050.0348.79
5.1.60.0040.0278.07
5.1.50.0040.0328.07
5.1.40.0050.0328.04
5.1.30.0060.0348.40
5.1.20.0040.0348.41
5.1.10.0110.0288.14
5.1.00.0020.0388.14
5.0.50.0040.0276.62
5.0.40.0030.0276.47
5.0.30.0050.0406.29
5.0.20.0070.0216.26
5.0.10.0030.0286.24
5.0.00.0040.0386.23
4.4.90.0020.0224.78
4.4.80.0030.0214.75
4.4.70.0050.0184.75
4.4.60.0030.0214.76
4.4.50.0040.0204.77
4.4.40.0060.0294.70
4.4.30.0030.0204.76
4.4.20.0060.0194.84
4.4.10.0040.0214.85
4.4.00.0020.0324.76
4.3.110.0030.0214.67
4.3.100.0060.0184.67
4.3.90.0040.0194.63
4.3.80.0000.0334.59
4.3.70.0040.0194.63
4.3.60.0060.0174.63
4.3.50.0020.0234.62
4.3.40.0030.0314.54
4.3.30.0030.0203.28
4.3.20.0030.0203.26
4.3.10.0020.0213.21
4.3.00.0030.01715.98

preferences:
49.47 ms | 401 KiB | 5 Q