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-02-06'); $end->modify('first day of next month'); $interval = DateInterval::createFromDateString('1 week'); $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.00916.61
8.3.50.0130.01022.88
8.3.40.0040.01118.93
8.3.30.0070.00719.21
8.3.20.0040.00420.29
8.3.10.0040.00423.48
8.3.00.0080.00019.50
8.2.180.0110.00717.00
8.2.170.0110.00322.96
8.2.160.0120.00320.38
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00626.16
8.2.120.0080.00021.16
8.2.110.0060.00320.32
8.2.100.0040.00818.34
8.2.90.0070.00419.22
8.2.80.0060.00318.00
8.2.70.0030.00617.88
8.2.60.0050.00517.89
8.2.50.0080.00018.07
8.2.40.0060.00320.01
8.2.30.0000.00718.17
8.2.20.0060.00318.07
8.2.10.0070.00018.09
8.2.00.0030.00717.95
8.1.280.0080.00825.92
8.1.270.0090.00023.96
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00323.89
8.1.230.0040.00719.24
8.1.220.0040.00417.88
8.1.210.0080.00018.77
8.1.200.0030.00617.60
8.1.190.0040.00417.48
8.1.180.0000.00818.10
8.1.170.0080.00018.80
8.1.160.0070.00022.09
8.1.150.0050.00218.95
8.1.140.0000.00717.64
8.1.130.0040.00417.98
8.1.120.0050.00217.80
8.1.110.0040.00417.76
8.1.100.0050.00217.62
8.1.90.0040.00417.66
8.1.80.0000.00817.72
8.1.70.0000.00817.68
8.1.60.0060.00517.71
8.1.50.0030.00517.76
8.1.40.0050.00317.68
8.1.30.0030.00517.68
8.1.20.0000.00817.86
8.1.10.0070.00017.75
8.1.00.0000.00717.64
8.0.300.0030.00618.77
8.0.290.0040.00417.00
8.0.280.0040.00418.53
8.0.270.0000.00717.40
8.0.260.0070.00017.45
8.0.250.0040.00517.13
8.0.240.0040.00417.20
8.0.230.0000.00717.18
8.0.220.0030.00317.13
8.0.210.0000.00717.07
8.0.200.0050.00217.22
8.0.190.0030.00517.23
8.0.180.0040.00417.20
8.0.170.0030.00517.18
8.0.160.0040.00417.20
8.0.150.0000.00817.10
8.0.140.0040.00417.14
8.0.130.0050.00013.50
8.0.120.0020.00517.10
8.0.110.0030.00517.19
8.0.100.0000.00717.04
8.0.90.0040.00417.10
8.0.80.0040.01217.04
8.0.70.0050.00217.00
8.0.60.0050.00317.18
8.0.50.0050.00217.18
8.0.30.0070.01217.20
8.0.20.0090.01417.45
8.0.10.0050.00217.09
8.0.00.0090.00816.93
7.4.330.0000.00515.17
7.4.320.0000.00616.73
7.4.300.0000.00616.72
7.4.290.0000.00716.68
7.4.280.0100.00016.74
7.4.270.0030.00316.74
7.4.260.0040.00416.62
7.4.250.0000.00816.67
7.4.240.0020.00516.70
7.4.230.0030.00516.89
7.4.220.0170.00016.91
7.4.210.0100.00616.91
7.4.200.0000.00716.89
7.4.160.0090.00616.83
7.4.150.0110.00717.40
7.4.140.0100.00817.86
7.4.130.0100.00816.61
7.4.120.0070.00916.74
7.4.110.0070.01016.77
7.4.100.0160.00716.73
7.4.90.0040.01416.89
7.4.80.0140.01019.39
7.4.70.0110.01116.68
7.4.60.0110.00716.51
7.4.50.0080.00016.61
7.4.40.0060.01516.62
7.4.30.0080.00816.71
7.4.00.0000.01615.36
7.3.330.0050.00013.30
7.3.320.0000.00513.17
7.3.310.0000.00716.46
7.3.300.0040.00416.51
7.3.290.0060.01116.57
7.3.280.0050.01116.47
7.3.270.0060.01317.40
7.3.260.0130.00616.64
7.3.250.0100.00816.61
7.3.240.0160.00716.92
7.3.230.0110.01116.55
7.3.210.0030.02016.43
7.3.200.0140.00319.39
7.3.190.0070.01116.82
7.3.180.0130.00516.72
7.3.170.0130.00316.79
7.3.160.0150.00416.53
7.3.10.0050.00716.67
7.3.00.0070.00716.79
7.2.330.0040.01416.89
7.2.320.0070.01016.81
7.2.310.0190.00316.69
7.2.300.0140.00316.53
7.2.290.0070.01017.00
7.2.130.0070.01017.22
7.2.120.0100.00917.14
7.2.110.0090.00917.09
7.2.100.0060.01217.14
7.2.90.0100.00517.22
7.2.80.0040.00916.96
7.2.70.0090.00617.19
7.2.60.0080.00817.07
7.2.50.0130.00417.23
7.2.40.0080.00817.20
7.2.30.0090.00817.19
7.2.20.0110.00417.11
7.2.10.0060.00817.15
7.2.00.0060.00817.88
7.1.250.0120.00515.82
7.1.200.0000.01316.13
7.1.100.0110.00718.41
7.1.70.0000.00817.44
7.1.60.0070.00719.46
7.1.50.0090.01216.88
7.1.00.0070.07322.27
7.0.200.0000.00817.02
7.0.140.0070.06721.95
7.0.60.0130.06319.92
7.0.50.0100.03717.88
7.0.40.0200.04020.04
7.0.30.0430.07020.06
7.0.20.0200.05020.16
7.0.10.0030.06320.09
7.0.00.0030.09320.22
5.6.280.0030.07321.11
5.6.210.0100.07320.72
5.6.200.0130.06718.18
5.6.190.0070.04320.61
5.6.180.0300.04320.46
5.6.170.0270.07720.50
5.6.160.0000.05320.39
5.6.150.0070.08318.18
5.6.140.0030.04318.15
5.6.130.0030.04718.13
5.6.120.0030.08320.89
5.6.110.0070.08720.98
5.6.100.0230.07721.02
5.6.90.0100.08721.01
5.6.80.0030.05020.37
5.5.350.0200.07020.43
5.5.340.0130.03317.92
5.5.330.0070.04020.28
5.5.320.0230.04020.24
5.5.310.0270.06720.41
5.5.300.0170.07317.92
5.5.290.0070.08017.87
5.5.280.0100.04020.73
5.5.270.0070.08720.81
5.5.260.0270.06720.79
5.5.250.0030.07320.46
5.5.240.0100.04020.34
5.4.450.0070.05319.58
5.4.440.0170.06319.46
5.4.430.0200.03019.13
5.4.420.0100.03719.21
5.4.410.0100.03719.45
5.4.400.0070.04019.25
5.4.390.0170.03719.16
5.4.380.0300.06018.52
5.4.370.0430.05318.63
5.4.360.0330.04718.61
5.4.350.0330.06318.50
5.4.340.0200.08018.46
5.4.320.0040.03812.46
5.4.310.0060.03712.45
5.4.300.0050.03612.46
5.4.290.0030.04012.45
5.4.280.0060.03512.35
5.4.270.0070.03412.35
5.4.260.0060.03812.35
5.4.250.0070.03612.35
5.4.240.0070.03512.35
5.4.230.0050.03812.34
5.4.220.0020.04012.34
5.4.210.0080.03212.34
5.4.200.0090.03412.34
5.4.190.0080.03312.34
5.4.180.0040.03712.34
5.4.170.0070.03412.35
5.4.160.0070.03412.35
5.4.150.0090.03812.34
5.4.140.0070.03612.03
5.4.130.0050.03712.01
5.4.120.0070.03411.97
5.4.110.0070.03411.97
5.4.100.0080.03311.97
5.4.90.0060.03711.97
5.4.80.0050.03911.96
5.4.70.0040.03711.96
5.4.60.0110.03511.96
5.4.50.0090.03611.96
5.4.40.0060.03411.95
5.4.30.0060.03511.95
5.4.20.0080.03311.95
5.4.10.0070.03411.95
5.4.00.0050.03811.44
5.3.290.0100.04012.80
5.3.280.0080.03812.71
5.3.270.0110.03712.72
5.3.260.0080.04012.72
5.3.250.0070.03912.72
5.3.240.0060.03912.72
5.3.230.0080.03712.71
5.3.220.0040.04212.68
5.3.210.0070.03912.68
5.3.200.0060.03912.68
5.3.190.0060.03912.68
5.3.180.0070.03712.68
5.3.170.0070.03812.67
5.3.160.0080.03612.68
5.3.150.0040.04012.67
5.3.140.0080.03612.66
5.3.130.0050.03912.66
5.3.120.0060.03912.66
5.3.110.0090.03612.66
5.3.100.0070.03712.12
5.3.90.0050.03712.09
5.3.80.0040.03812.08
5.3.70.0050.03712.07
5.3.60.0060.03712.06
5.3.50.0080.03512.00
5.3.40.0090.03412.00
5.3.30.0080.03611.95
5.3.20.0070.03911.72
5.3.10.0060.04111.69
5.3.00.0040.03711.68
5.2.170.0050.0309.18
5.2.160.0040.0299.19
5.2.150.0060.0319.19
5.2.140.0070.0289.19
5.2.130.0080.0259.15
5.2.120.0050.0279.14
5.2.110.0030.0309.15
5.2.100.0070.0269.14
5.2.90.0030.0309.15
5.2.80.0060.0289.14
5.2.70.0050.0299.14
5.2.60.0040.0309.09
5.2.50.0040.0309.07
5.2.40.0040.0289.04
5.2.30.0060.0279.02
5.2.20.0020.0309.00
5.2.10.0030.0298.93
5.2.00.0050.0288.79
5.1.60.0050.0238.07
5.1.50.0080.0208.07
5.1.40.0050.0238.05
5.1.30.0070.0228.39
5.1.20.0060.0248.42
5.1.10.0040.0258.14
5.1.00.0060.0258.14
5.0.50.0040.0206.62
5.0.40.0050.0186.48
5.0.30.0040.0316.29
5.0.20.0050.0186.26
5.0.10.0040.0196.24
5.0.00.0090.0246.23
4.4.90.0070.0114.78
4.4.80.0050.0134.75
4.4.70.0010.0174.76
4.4.60.0010.0174.76
4.4.50.0040.0144.77
4.4.40.0090.0194.71
4.4.30.0010.0174.76
4.4.20.0030.0154.84
4.4.10.0020.0154.85
4.4.00.0030.0254.76
4.3.110.0030.0154.67
4.3.100.0030.0144.66
4.3.90.0020.0154.64
4.3.80.0020.0244.58
4.3.70.0010.0164.63
4.3.60.0030.0134.63
4.3.50.0040.0134.63
4.3.40.0020.0244.54
4.3.30.0010.0173.29
4.3.20.0020.0163.25
4.3.10.0020.0153.22
4.3.00.0030.02714.87

preferences:
76.4 ms | 401 KiB | 5 Q