3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2014-01-02'); $start->modify('first day of this month'); $end = new DateTime('2014-05-06'); $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.63
8.3.50.0120.00822.90
8.3.40.0120.00318.88
8.3.30.0060.00819.22
8.3.20.0040.00420.34
8.3.10.0040.00423.48
8.3.00.0050.00319.38
8.2.180.0090.00616.86
8.2.170.0040.01122.96
8.2.160.0110.00420.10
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00021.02
8.2.110.0060.00320.60
8.2.100.0060.00618.22
8.2.90.0030.00619.30
8.2.80.0030.00617.97
8.2.70.0050.00317.88
8.2.60.0030.00617.93
8.2.50.0030.00618.07
8.2.40.0060.00318.34
8.2.30.0030.00518.07
8.2.20.0070.00017.89
8.2.10.0050.00318.12
8.2.00.0000.01017.91
8.1.280.0150.00025.92
8.1.270.0140.00423.96
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0060.00322.29
8.1.230.0040.00819.22
8.1.220.0050.00317.78
8.1.210.0040.00418.77
8.1.200.0000.01017.61
8.1.190.0040.00417.48
8.1.180.0040.00418.10
8.1.170.0030.00518.73
8.1.160.0000.00722.13
8.1.150.0000.00719.08
8.1.140.0040.00417.77
8.1.130.0030.00517.84
8.1.120.0000.00717.66
8.1.110.0050.00317.73
8.1.100.0000.00717.62
8.1.90.0040.00417.66
8.1.80.0070.00017.79
8.1.70.0000.00817.66
8.1.60.0070.00617.79
8.1.50.0040.00417.72
8.1.40.0050.00317.75
8.1.30.0030.00617.80
8.1.20.0020.00517.84
8.1.10.0050.00217.77
8.1.00.0000.00717.67
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0030.00518.64
8.0.270.0000.00717.44
8.0.260.0030.00317.40
8.0.250.0000.00717.21
8.0.240.0040.00417.28
8.0.230.0000.00717.20
8.0.220.0030.00317.17
8.0.210.0070.00017.15
8.0.200.0040.00417.09
8.0.190.0050.00317.25
8.0.180.0030.00517.06
8.0.170.0050.00317.09
8.0.160.0070.00017.05
8.0.150.0040.00417.09
8.0.140.0040.00417.12
8.0.130.0030.00313.48
8.0.120.0000.00817.05
8.0.110.0000.00717.17
8.0.100.0060.00317.15
8.0.90.0000.00716.98
8.0.80.0120.00317.15
8.0.70.0040.00417.17
8.0.60.0040.00416.99
8.0.50.0040.00417.03
8.0.30.0090.01017.30
8.0.20.0080.01117.40
8.0.10.0040.00417.26
8.0.00.0130.00417.09
7.4.330.0050.00015.09
7.4.320.0030.00316.64
7.4.300.0030.00316.73
7.4.290.0070.00016.82
7.4.280.0100.00016.80
7.4.270.0000.00816.82
7.4.260.0000.00716.71
7.4.250.0000.00716.78
7.4.240.0020.00616.72
7.4.230.0070.00016.84
7.4.220.0030.01216.67
7.4.210.0060.00916.84
7.4.200.0030.00316.55
7.4.160.0080.00816.73
7.4.150.0090.00917.40
7.4.140.0090.00817.86
7.4.130.0060.01016.77
7.4.120.0180.00616.77
7.4.110.0030.01416.75
7.4.100.0090.00916.57
7.4.90.0060.01216.59
7.4.80.0120.01219.39
7.4.70.0080.01116.61
7.4.60.0100.00616.45
7.4.50.0080.00016.57
7.4.40.0060.00916.94
7.4.30.0030.01416.64
7.4.00.0030.01015.35
7.3.330.0070.00013.33
7.3.320.0030.00313.30
7.3.310.0030.00316.47
7.3.300.0000.00716.31
7.3.290.0000.01516.40
7.3.280.0140.00516.47
7.3.270.0060.01217.40
7.3.260.0140.00916.68
7.3.250.0120.00416.64
7.3.240.0030.01716.58
7.3.230.0060.01516.80
7.3.210.0110.00616.70
7.3.200.0070.01019.39
7.3.190.0120.00616.65
7.3.180.0090.00616.71
7.3.170.0130.00316.76
7.3.160.0110.00816.61
7.2.330.0070.01017.01
7.2.320.0030.01316.87
7.2.310.0140.00316.97
7.2.300.0070.01317.05
7.2.290.0030.01317.01
7.2.60.0040.01217.36
7.1.200.0230.00616.09
7.1.70.0000.01017.47
7.1.60.0070.01719.46
7.1.50.0060.01617.33
7.1.00.0030.07722.57
7.0.200.0030.00617.13
7.0.140.0000.07722.10
7.0.60.0070.04019.97
7.0.50.0130.07317.90
7.0.40.0030.09020.27
7.0.30.0130.04320.18
7.0.20.0170.05320.01
7.0.10.0030.04320.01
7.0.00.0100.05020.14
5.6.280.0070.07020.90
5.6.210.0070.08320.48
5.6.200.0000.08718.22
5.6.190.0000.04320.49
5.6.180.0370.03720.64
5.6.170.0270.04720.62
5.6.160.0030.04320.37
5.6.150.0000.07718.21
5.6.140.0100.05318.20
5.6.130.0100.07718.14
5.6.120.0030.05020.93
5.6.110.0130.08020.98
5.6.100.0070.08320.99
5.6.90.0100.08321.07
5.6.80.0130.06720.38
5.5.350.0170.04720.49
5.5.340.0170.06717.89
5.5.330.0070.04720.40
5.5.320.0130.05020.21
5.5.310.0200.03720.43
5.5.300.0030.08717.92
5.5.290.0100.08317.95
5.5.280.0070.08020.79
5.5.270.0100.04320.75
5.5.260.0130.06320.72
5.5.250.0100.07720.55
5.5.240.0200.03320.14
5.4.450.0130.04019.41
5.4.440.0170.04319.26
5.4.430.0200.04019.57
5.4.420.0100.04019.41
5.4.410.0100.03719.42
5.4.400.0070.03719.09
5.4.390.0130.04319.09
5.4.380.0500.06718.57
5.4.370.0330.05718.52
5.4.360.0600.06018.73
5.4.350.0330.06318.58
5.4.340.0270.07018.69
5.4.320.0190.05812.46
5.4.310.0160.06212.45
5.4.300.0200.05712.46
5.4.290.0080.04712.45
5.4.280.0060.04012.35
5.4.270.0060.04612.35
5.4.260.0080.05812.35
5.4.250.0120.04412.35
5.4.240.0080.05312.35
5.4.230.0180.11112.34
5.4.220.0170.07312.34
5.4.210.0080.04112.34
5.4.200.0080.05112.34
5.4.190.0100.04812.34
5.4.180.0130.05312.34
5.4.170.0060.04212.35
5.4.160.0140.05912.35
5.4.150.0140.05012.34
5.4.140.0100.05312.03
5.4.130.0070.04712.02
5.4.120.0060.04611.97
5.4.110.0050.03911.96
5.4.100.0090.04511.96
5.4.90.0320.08411.96
5.4.80.0070.05311.97
5.4.70.0070.04511.96
5.4.60.0140.04411.96
5.4.50.0070.03611.96
5.4.40.0060.03611.95
5.4.30.0100.03611.95
5.4.20.0040.03911.95
5.4.10.0080.04511.95
5.4.00.0060.04511.43
5.3.290.0120.04212.80
5.3.280.0070.04612.71
5.3.270.0100.03612.72
5.3.260.0110.06612.72
5.3.250.0060.05412.72
5.3.240.0080.05312.72
5.3.230.0070.03712.70
5.3.220.0120.04412.68
5.3.210.0070.05012.68
5.3.200.0080.04212.68
5.3.190.0070.04612.68
5.3.180.0090.05412.67
5.3.170.0120.03912.67
5.3.160.0080.04212.67
5.3.150.0080.04012.67
5.3.140.0100.04412.66
5.3.130.0110.04512.65
5.3.120.0090.04712.65
5.3.110.0090.04612.66
5.3.100.0060.04012.12
5.3.90.0090.04012.08
5.3.80.0070.04412.07
5.3.70.0110.03312.07
5.3.60.0100.03912.06
5.3.50.0150.04612.00
5.3.40.0090.03812.00
5.3.30.0170.06611.95
5.3.20.0070.04611.72
5.3.10.0120.04711.70
5.3.00.0140.07311.68
5.2.170.0080.0429.19
5.2.160.0090.0389.19
5.2.150.0120.0419.19
5.2.140.0110.0309.18
5.2.130.0100.0299.14
5.2.120.0060.0309.14
5.2.110.0100.0459.15
5.2.100.0080.0339.15
5.2.90.0140.0259.14
5.2.80.0060.0339.14
5.2.70.0080.0459.14
5.2.60.0050.0439.09
5.2.50.0080.0339.06
5.2.40.0080.0359.04
5.2.30.0080.0399.02
5.2.20.0110.0329.00
5.2.10.0060.0298.93
5.2.00.0070.0338.79
5.1.60.0080.0248.07
5.1.50.0040.0358.07
5.1.40.0050.0288.05
5.1.30.0040.0288.39
5.1.20.0080.0348.42
5.1.10.0050.0368.14
5.1.00.0060.0408.14
5.0.50.0090.0266.62
5.0.40.0060.0266.48
5.0.30.0030.0426.29
5.0.20.0050.0256.26
5.0.10.0070.0256.24
5.0.00.0040.0316.23
4.4.90.0090.0224.78
4.4.80.0080.0114.75
4.4.70.0020.0174.75
4.4.60.0020.0174.76
4.4.50.0060.0164.77
4.4.40.0040.0304.71
4.4.30.0040.0164.76
4.4.20.0040.0164.85
4.4.10.0040.0144.84
4.4.00.0050.0274.76
4.3.110.0030.0184.67
4.3.100.0040.0144.66
4.3.90.0030.0154.63
4.3.80.0030.0274.59
4.3.70.0020.0164.63
4.3.60.0040.0164.63
4.3.50.0040.0174.63
4.3.40.0040.0244.54
4.3.30.0030.0163.29
4.3.20.0030.0163.26
4.3.10.0020.0163.22
4.3.00.0030.01714.87

preferences:
47.33 ms | 401 KiB | 5 Q