3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2010-12-02'); $start->modify('first day of this month'); $end = clone $start; $end->modify('-1 year'); $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.0100.01016.75
8.3.50.0090.00822.84
8.3.40.0110.00719.14
8.3.30.0060.00919.21
8.3.20.0070.00020.34
8.3.10.0050.00323.63
8.3.00.0080.00019.63
8.2.180.0180.00318.55
8.2.170.0040.01122.96
8.2.160.0100.00620.50
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0050.00226.16
8.2.120.0050.00320.91
8.2.110.0080.00020.46
8.2.100.0110.00018.28
8.2.90.0000.00819.35
8.2.80.0050.00517.97
8.2.70.0130.00017.63
8.2.60.0050.00318.05
8.2.50.0040.00418.07
8.2.40.0040.00420.07
8.2.30.0000.00718.21
8.2.20.0040.00417.94
8.2.10.0000.00718.33
8.2.00.0040.00417.86
8.1.280.0130.01025.92
8.1.270.0080.00024.09
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00322.27
8.1.230.0000.01019.21
8.1.220.0000.00817.79
8.1.210.0000.00818.77
8.1.200.0100.00017.48
8.1.190.0040.00417.47
8.1.180.0030.00618.10
8.1.170.0000.00818.64
8.1.160.0000.00722.04
8.1.150.0040.00419.08
8.1.140.0040.00417.63
8.1.130.0070.00017.95
8.1.120.0060.00317.72
8.1.110.0050.00317.60
8.1.100.0040.00417.71
8.1.90.0040.00417.72
8.1.80.0040.00417.71
8.1.70.0070.00017.70
8.1.60.0030.00617.78
8.1.50.0000.00817.70
8.1.40.0000.00817.58
8.1.30.0000.00817.82
8.1.20.0070.00317.84
8.1.10.0020.00517.76
8.1.00.0050.00317.62
8.0.300.0000.01018.77
8.0.290.0070.00016.88
8.0.280.0100.00018.62
8.0.270.0000.00917.42
8.0.260.0030.00317.27
8.0.250.0030.00317.28
8.0.240.0000.00717.11
8.0.230.0000.00817.10
8.0.220.0030.00317.07
8.0.210.0030.00317.09
8.0.200.0060.00017.19
8.0.190.0070.00017.24
8.0.180.0000.00717.21
8.0.170.0050.00517.25
8.0.160.0050.00217.24
8.0.150.0000.00717.01
8.0.140.0040.00417.13
8.0.130.0000.00513.41
8.0.120.0050.00216.96
8.0.110.0000.00817.16
8.0.100.0040.00417.13
8.0.90.0000.00717.04
8.0.80.0120.00917.10
8.0.70.0040.00417.13
8.0.60.0000.00717.18
8.0.50.0040.00417.16
8.0.30.0060.01417.29
8.0.20.0170.00317.42
8.0.10.0030.00517.19
8.0.00.0150.00517.02
7.4.330.0030.00315.00
7.4.320.0000.00616.63
7.4.300.0060.00016.71
7.4.290.0100.00016.77
7.4.280.0050.00516.71
7.4.270.0030.00316.66
7.4.260.0030.00316.80
7.4.250.0040.00416.59
7.4.240.0020.00616.72
7.4.230.0030.00316.58
7.4.220.0070.01116.83
7.4.210.0100.00316.57
7.4.200.0030.00316.73
7.4.160.0100.01316.79
7.4.150.0090.00917.40
7.4.140.0100.00917.86
7.4.130.0100.00616.72
7.4.120.0110.00816.70
7.4.110.0100.00616.77
7.4.100.0160.00716.80
7.4.90.0070.01016.66
7.4.80.0090.00919.39
7.4.70.0070.01016.82
7.4.60.0050.01316.55
7.4.50.0030.00316.84
7.4.40.0090.00816.66
7.4.30.0040.01216.50
7.4.00.0070.01015.06
7.3.330.0030.00313.30
7.3.320.0000.00513.24
7.3.310.0050.00316.28
7.3.300.0000.00616.24
7.3.290.0130.00916.43
7.3.280.0070.01016.41
7.3.270.0060.01717.40
7.3.260.0120.00416.68
7.3.250.0100.00716.68
7.3.240.0130.01016.52
7.3.230.0030.01316.60
7.3.210.0070.01116.50
7.3.200.0130.00619.39
7.3.190.0040.01816.30
7.3.180.0100.01016.51
7.3.170.0000.01516.84
7.3.160.0130.00416.52
7.3.10.0070.00716.76
7.3.00.0100.00616.83
7.2.330.0030.01416.91
7.2.320.0060.01216.71
7.2.310.0100.00716.84
7.2.300.0000.01716.92
7.2.290.0100.00716.71
7.2.130.0000.00916.86
7.2.120.0100.00316.88
7.2.110.0030.00717.11
7.2.100.0000.00916.95
7.2.90.0130.00317.14
7.2.80.0110.00017.19
7.2.70.0030.01016.94
7.2.60.0160.00316.98
7.2.50.0070.01017.17
7.2.40.0030.00916.89
7.2.30.0040.01117.26
7.2.20.0040.01117.28
7.2.10.0000.01317.13
7.2.00.0080.01018.37
7.1.250.0000.00915.92
7.1.200.0060.00615.84
7.1.100.0030.00718.46
7.1.70.0050.00517.32
7.1.60.0070.01619.46
7.1.50.0110.01417.18
7.1.00.0070.09022.57
7.0.200.0160.00616.65
7.0.140.0000.07322.08
7.0.60.0200.07319.93
7.0.50.0000.08317.91
7.0.40.0100.08720.27
7.0.30.0270.04720.06
7.0.20.0300.04720.17
7.0.10.0130.04320.02
7.0.00.0000.05020.13
5.6.280.0100.06720.77
5.6.210.0200.06720.66
5.6.200.0130.03318.23
5.6.190.0130.05720.41
5.6.180.0400.04020.49
5.6.170.0170.04720.63
5.6.160.0130.07720.47
5.6.150.0070.08018.16
5.6.140.0000.08318.16
5.6.130.0100.05718.14
5.6.120.0170.07020.92
5.6.110.0130.07720.99
5.6.100.0000.04721.11
5.6.90.0000.04720.96
5.6.80.0030.04720.41
5.5.350.0170.04320.44
5.5.340.0130.07717.89
5.5.330.0100.08720.25
5.5.320.0400.04320.51
5.5.310.0200.04020.34
5.5.300.0100.07717.98
5.5.290.0000.04317.95
5.5.280.0130.07720.96
5.5.270.0100.08320.95
5.5.260.0030.04020.67
5.5.250.0000.07320.46
5.5.240.0200.07320.35
5.4.450.0100.03319.38
5.4.440.0170.04019.23
5.4.430.0000.04019.46
5.4.420.0070.03319.38
5.4.410.0130.04019.33
5.4.400.0030.03719.09
5.4.390.0100.04018.78
5.4.380.0400.06018.65
5.4.370.0300.05318.71
5.4.360.0330.05318.70
5.4.350.0430.06018.67
5.4.340.0300.05318.69
5.4.320.0120.03512.46
5.4.310.0030.04812.45
5.4.300.0070.03912.45
5.4.290.0060.04612.45
5.4.280.0070.03412.35
5.4.270.0060.03712.35
5.4.260.0050.04012.35
5.4.250.0050.04212.35
5.4.240.0090.03712.35
5.4.230.0080.03612.34
5.4.220.0090.03412.34
5.4.210.0080.03312.34
5.4.200.0070.04012.34
5.4.190.0100.03512.34
5.4.180.0050.03912.34
5.4.170.0080.04212.35
5.4.160.0050.04312.34
5.4.150.0090.03412.34
5.4.140.0110.03512.03
5.4.130.0080.03812.02
5.4.120.0090.03411.97
5.4.110.0080.03411.96
5.4.100.0070.03511.97
5.4.90.0060.03911.96
5.4.80.0040.04411.96
5.4.70.0070.03611.96
5.4.60.0060.04111.96
5.4.50.0080.03411.96
5.4.40.0070.03811.95
5.4.30.0070.03911.95
5.4.20.0070.03411.95
5.4.10.0080.03611.95
5.4.00.0040.03711.43
5.3.290.0070.04212.80
5.3.280.0100.04312.71
5.3.270.0110.04712.72
5.3.260.0060.04512.72
5.3.250.0080.04512.72
5.3.240.0080.03912.72
5.3.230.0100.03912.71
5.3.220.0050.04712.68
5.3.210.0070.04212.68
5.3.200.0050.03812.68
5.3.190.0120.03412.68
5.3.180.0140.03812.68
5.3.170.0080.03812.66
5.3.160.0050.03912.68
5.3.150.0130.03712.67
5.3.140.0090.03912.66
5.3.130.0060.04012.66
5.3.120.0100.04012.66
5.3.110.0070.04212.66
5.3.100.0030.04212.12
5.3.90.0080.04012.09
5.3.80.0080.03912.07
5.3.70.0080.03812.07
5.3.60.0110.03212.06
5.3.50.0090.03712.00
5.3.40.0050.04412.00
5.3.30.0060.04411.95
5.3.20.0100.03811.73
5.3.10.0100.03611.69
5.3.00.0050.03711.68
5.2.170.0060.0319.19
5.2.160.0070.0319.19
5.2.150.0040.0369.19
5.2.140.0040.0329.19
5.2.130.0080.0339.14
5.2.120.0050.0299.14
5.2.110.0090.0349.15
5.2.100.0060.0289.15
5.2.90.0060.0349.15
5.2.80.0070.0359.14
5.2.70.0100.0319.14
5.2.60.0060.0369.09
5.2.50.0060.0289.07
5.2.40.0100.0339.04
5.2.30.0070.0359.02
5.2.20.0080.0279.01
5.2.10.0020.0368.93
5.2.00.0050.0288.79
5.1.60.0040.0248.07
5.1.50.0070.0228.06
5.1.40.0020.0278.04
5.1.30.0100.0248.40
5.1.20.0060.0288.42
5.1.10.0030.0348.14
5.1.00.0040.0298.14
5.0.50.0070.0276.62
5.0.40.0040.0216.48
5.0.30.0040.0296.29
5.0.20.0060.0186.26
5.0.10.0050.0256.24
5.0.00.0060.0346.24
4.4.90.0050.0164.78
4.4.80.0030.0184.75
4.4.70.0050.0224.76
4.4.60.0020.0204.76
4.4.50.0030.0184.77
4.4.40.0040.0274.71
4.4.30.0030.0194.76
4.4.20.0010.0204.85
4.4.10.0050.0154.85
4.4.00.0060.0364.76
4.3.110.0020.0184.67
4.3.100.0020.0184.67
4.3.90.0020.0244.64
4.3.80.0060.0294.58
4.3.70.0050.0174.63
4.3.60.0050.0164.63
4.3.50.0050.0234.63
4.3.40.0060.0224.53
4.3.30.0020.0163.28
4.3.20.0050.0223.25
4.3.10.0030.0203.23
4.3.00.0000.02014.87

preferences:
35.2 ms | 401 KiB | 5 Q