3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2014-04-01'); $start->modify('first day of this month'); $end = new DateTime('2014-04-28'); $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.00716.88
8.3.50.0120.00622.07
8.3.40.0110.00418.92
8.3.30.0120.00319.01
8.3.20.0030.00620.16
8.3.10.0050.00323.61
8.3.00.0090.00020.79
8.2.180.0150.00617.00
8.2.170.0070.00722.96
8.2.160.0070.00720.38
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00820.93
8.2.110.0030.00621.25
8.2.100.0070.00418.09
8.2.90.0000.00819.34
8.2.80.0000.00918.00
8.2.70.0060.00317.63
8.2.60.0000.00818.16
8.2.50.0050.00318.47
8.2.40.0080.00022.12
8.2.30.0040.00419.36
8.2.20.0080.00017.90
8.2.10.0040.00418.28
8.2.00.0040.00418.02
8.1.280.0170.00325.92
8.1.270.0040.00423.96
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0040.00423.98
8.1.230.0040.00720.44
8.1.220.0000.00817.91
8.1.210.0060.00318.77
8.1.200.0030.00617.73
8.1.190.0040.00417.35
8.1.180.0040.00718.10
8.1.170.0030.00618.71
8.1.160.0070.00019.09
8.1.150.0000.00820.26
8.1.140.0040.00417.67
8.1.130.0030.00317.91
8.1.120.0030.00317.64
8.1.110.0040.00417.77
8.1.100.0050.00217.72
8.1.90.0040.00417.64
8.1.80.0040.00417.69
8.1.70.0000.00717.59
8.1.60.0000.00917.82
8.1.50.0080.00017.63
8.1.40.0000.00917.73
8.1.30.0000.00817.75
8.1.20.0040.00417.84
8.1.10.0030.00517.71
8.1.00.0050.00317.78
8.0.300.0070.00018.77
8.0.290.0060.00316.75
8.0.280.0000.00918.51
8.0.270.0030.00417.46
8.0.260.0000.00717.10
8.0.250.0070.00017.13
8.0.240.0060.00317.07
8.0.230.0000.00717.27
8.0.220.0000.00717.04
8.0.210.0070.00017.17
8.0.200.0030.00617.24
8.0.190.0030.00317.18
8.0.180.0060.00217.05
8.0.170.0030.00617.10
8.0.160.0070.00017.16
8.0.150.0030.00517.07
8.0.140.0000.00717.01
8.0.130.0030.00313.55
8.0.120.0030.00517.16
8.0.110.0040.00417.11
8.0.100.0020.00517.12
8.0.90.0040.00417.05
8.0.80.0060.00917.09
8.0.70.0050.00217.13
8.0.60.0000.00817.17
8.0.50.0070.00017.20
8.0.30.0090.01117.44
8.0.20.0100.00917.40
8.0.10.0040.00417.39
8.0.00.0110.00716.88
7.4.330.0000.00515.18
7.4.320.0070.00016.66
7.4.300.0030.00316.63
7.4.290.0030.00316.72
7.4.280.0000.01116.70
7.4.270.0000.00816.83
7.4.260.0090.00016.83
7.4.250.0040.00416.65
7.4.240.0020.00516.82
7.4.230.0030.00316.69
7.4.220.0060.01216.74
7.4.210.0050.01416.82
7.4.200.0040.00416.69
7.4.190.0050.00316.72
7.4.160.0090.00616.57
7.4.150.0120.01217.40
7.4.140.0100.00917.86
7.4.130.0170.00316.73
7.4.120.0110.00616.59
7.4.110.0070.01016.70
7.4.100.0070.01016.66
7.4.90.0100.01316.74
7.4.80.0040.01319.39
7.4.70.0120.00616.66
7.4.60.0100.01316.72
7.4.50.0000.00516.71
7.4.40.0090.01216.68
7.4.30.0030.01316.52
7.4.00.0040.01115.29
7.3.330.0060.00013.22
7.3.320.0000.00613.30
7.3.310.0040.00416.57
7.3.300.0060.00016.48
7.3.290.0030.01616.50
7.3.280.0090.00816.49
7.3.270.0060.01217.40
7.3.260.0040.01416.69
7.3.250.0150.00416.79
7.3.240.0070.01116.55
7.3.230.0120.00916.62
7.3.210.0150.00316.57
7.3.200.0070.01319.39
7.3.190.0110.00716.46
7.3.180.0100.00616.73
7.3.170.0080.00816.76
7.3.160.0180.00616.57
7.3.120.0030.01315.10
7.2.330.0080.01116.89
7.2.320.0090.00916.80
7.2.310.0140.00716.89
7.2.300.0080.00816.70
7.2.290.0060.01216.85
7.2.00.0100.00519.82
7.1.100.0030.01318.02
7.1.70.0090.00617.05
7.1.60.0030.01919.70
7.1.50.0100.01317.18
7.1.00.0000.07722.44
7.0.200.0150.00915.23
7.0.140.0030.07322.09
7.0.60.0130.07319.86
7.0.50.0070.04017.82
7.0.40.0070.04020.24
7.0.30.0270.03320.04
7.0.20.0270.04020.32
7.0.10.0070.06020.20
7.0.00.0070.08020.16
5.6.280.0070.07021.07
5.6.210.0030.08320.66
5.6.200.0130.07718.22
5.6.190.0030.04320.27
5.6.180.0400.04720.58
5.6.170.0300.07320.41
5.6.160.0100.05720.50
5.6.150.0070.08318.20
5.6.140.0170.07318.14
5.6.130.0030.06018.17
5.6.120.0130.07721.13
5.6.110.0070.07721.04
5.6.100.0200.06021.11
5.6.90.0100.07720.96
5.6.80.0100.06020.35
5.5.350.3530.03320.43
5.5.340.0130.05317.98
5.5.330.0000.09020.43
5.5.320.0330.03720.32
5.5.310.0400.06720.45
5.5.300.0100.06717.95
5.5.290.0130.07717.98
5.5.280.0130.05020.86
5.5.270.0000.07720.86
5.5.260.0130.03020.86
5.5.250.0030.06020.61
5.5.240.0070.08320.12
5.4.450.0270.03719.21
5.4.440.0400.03319.28
5.4.430.0270.04319.09
5.4.420.0070.04319.41
5.4.410.0270.03719.29
5.4.400.0430.03019.26
5.4.390.0270.05019.04
5.4.380.1100.05718.59
5.4.370.0870.05718.74
5.4.360.0830.05318.56
5.4.350.0770.05718.72
5.4.340.1070.06018.72
5.4.320.0080.03512.46
5.4.310.0090.04112.45
5.4.300.0130.07512.45
5.4.290.0160.07812.45
5.4.280.0220.09712.35
5.4.270.0110.04512.35
5.4.260.0060.05212.35
5.4.250.0100.05012.35
5.4.240.0240.06512.35
5.4.230.0160.06612.34
5.4.220.0130.05812.34
5.4.210.0120.06812.34
5.4.200.0080.09312.34
5.4.190.0080.05512.34
5.4.180.0060.05912.34
5.4.170.0070.05712.35
5.4.160.0100.05912.35
5.4.150.0080.04612.34
5.4.140.0090.04512.02
5.4.130.0100.03812.02
5.4.120.0070.04811.97
5.4.110.0080.04611.97
5.4.100.0090.06511.97
5.4.90.0130.05611.96
5.4.80.0230.08411.97
5.4.70.0270.10111.96
5.4.60.0150.05711.96
5.4.50.0190.05711.96
5.4.40.0150.09711.95
5.4.30.0270.11911.95
5.4.20.0110.09711.95
5.4.10.0200.10311.95
5.4.00.0250.13111.44
5.3.290.0080.05212.80
5.3.280.0160.09112.71
5.3.270.0110.04212.72
5.3.260.0090.06112.72
5.3.250.0070.04812.72
5.3.240.0080.04212.72
5.3.230.0140.05012.71
5.3.220.0090.04712.68
5.3.210.0110.04412.68
5.3.200.0070.04612.68
5.3.190.0110.05212.68
5.3.180.0170.06412.67
5.3.170.0210.08412.67
5.3.160.0170.06412.67
5.3.150.0120.04812.67
5.3.140.0100.04612.66
5.3.130.0110.04812.66
5.3.120.0140.06712.66
5.3.110.0180.07612.66
5.3.100.0320.09712.12
5.3.90.0210.07712.08
5.3.80.0180.07612.07
5.3.70.0090.05712.07
5.3.60.0200.07612.06
5.3.50.0150.04712.00
5.3.40.0070.04912.00
5.3.30.0060.04911.95
5.3.20.0060.04611.73
5.3.10.0140.05811.69
5.3.00.0180.09611.68
5.2.170.0180.0629.19
5.2.160.0080.0419.19
5.2.150.0050.0389.19
5.2.140.0110.0589.18
5.2.130.0090.0439.14
5.2.120.0090.0689.14
5.2.110.0130.0489.14
5.2.100.0080.0469.15
5.2.90.0120.0539.14
5.2.80.0100.0619.14
5.2.70.0180.0579.14
5.2.60.0210.1159.09
5.2.50.0100.0779.07
5.2.40.0200.1149.04
5.2.30.0130.0959.02
5.2.20.0120.0709.00
5.2.10.0220.0728.93
5.2.00.0140.0628.79
5.1.60.0090.0268.07
5.1.50.0070.0278.07
5.1.40.0050.0328.05
5.1.30.0180.0948.39
5.1.20.0160.1018.42
5.1.10.0160.0668.14
5.1.00.0130.0478.14
5.0.50.0140.0466.62
5.0.40.0160.0336.47
5.0.30.0070.0646.29
5.0.20.0130.0736.26
5.0.10.0180.0466.24
5.0.00.0070.0406.23
4.4.90.0020.0194.77
4.4.80.0030.0184.75
4.4.70.0040.0214.76
4.4.60.0100.0494.75
4.4.50.0060.0364.77
4.4.40.0060.0254.71
4.4.30.0030.0174.76
4.4.20.0070.0314.85
4.4.10.0180.0404.84
4.4.00.0040.0354.75
4.3.110.0060.0194.67
4.3.100.0060.0304.66
4.3.90.0240.0484.63
4.3.80.0090.0534.58
4.3.70.0100.0584.63
4.3.60.0080.0444.63
4.3.50.0110.0414.62
4.3.40.0080.0414.54
4.3.30.0040.0233.28
4.3.20.0060.0233.26
4.3.10.0070.0553.22
4.3.00.0030.01318.64

preferences:
49.68 ms | 401 KiB | 5 Q