3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2014-08-02'); $start->modify('first day of this month'); $end = new DateTime('2014-10-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.0040.01118.43
8.3.50.0110.00922.00
8.3.40.0110.00318.96
8.3.30.0110.00419.18
8.3.20.0080.00020.32
8.3.10.0060.00320.79
8.3.00.0080.00019.80
8.2.180.0060.00916.75
8.2.170.0150.00622.96
8.2.160.0130.00720.35
8.2.150.0000.00724.18
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0040.00422.27
8.2.110.0080.00020.60
8.2.100.0060.00618.28
8.2.90.0000.00819.30
8.2.80.0030.00517.97
8.2.70.0030.00517.75
8.2.60.0110.00018.05
8.2.50.0050.00818.07
8.2.40.0000.00818.28
8.2.30.0000.00819.40
8.2.20.0000.00817.88
8.2.10.0080.00018.27
8.2.00.0000.00818.02
8.1.280.0000.01525.92
8.1.270.0030.00622.23
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00323.96
8.1.230.0110.00019.17
8.1.220.0030.00617.79
8.1.210.0030.00518.77
8.1.200.0030.00617.60
8.1.190.0040.00417.48
8.1.180.0000.00918.10
8.1.170.0000.00918.71
8.1.160.0000.00922.14
8.1.150.0000.00719.05
8.1.140.0070.00017.77
8.1.130.0000.00717.94
8.1.120.0070.00017.66
8.1.110.0070.00017.72
8.1.100.0050.00317.70
8.1.90.0030.00517.73
8.1.80.0040.00417.71
8.1.70.0000.00717.71
8.1.60.0000.00817.82
8.1.50.0060.00317.78
8.1.40.0040.00417.70
8.1.30.0040.00417.83
8.1.20.0050.00217.83
8.1.10.0000.00917.75
8.1.00.0040.00417.63
8.0.300.0070.00018.77
8.0.290.0070.00017.00
8.0.280.0040.00418.66
8.0.270.0000.00717.45
8.0.260.0070.00017.31
8.0.250.0000.00717.12
8.0.240.0070.00017.27
8.0.230.0030.00317.23
8.0.220.0030.00317.14
8.0.210.0030.00317.21
8.0.200.0030.00317.16
8.0.190.0060.00317.12
8.0.180.0040.00417.06
8.0.170.0040.00417.20
8.0.160.0040.00417.04
8.0.150.0070.00017.09
8.0.140.0030.00317.00
8.0.130.0030.00313.45
8.0.120.0040.00417.04
8.0.110.0000.00717.09
8.0.100.0080.00017.22
8.0.90.0050.00317.25
8.0.80.0040.01117.09
8.0.70.0000.00717.23
8.0.60.0000.00817.06
8.0.50.0040.00417.22
8.0.30.0130.00517.29
8.0.20.0080.01417.40
8.0.10.0040.00417.30
8.0.00.0040.01416.95
7.4.330.0020.00215.20
7.4.320.0000.00716.80
7.4.300.0030.00316.81
7.4.290.0070.00016.84
7.4.280.0090.00016.82
7.4.270.0030.00316.71
7.4.260.0000.00816.83
7.4.250.0050.00216.69
7.4.240.0050.00216.71
7.4.230.0030.00316.61
7.4.220.0100.00716.63
7.4.210.0030.01016.84
7.4.200.0050.00316.82
7.4.160.0090.00616.66
7.4.150.0130.01517.40
7.4.140.0140.00817.86
7.4.130.0050.01216.66
7.4.120.0110.00616.69
7.4.110.0070.01016.69
7.4.100.0100.00616.77
7.4.90.0080.01116.81
7.4.80.0110.00716.66
7.4.70.0120.00916.69
7.4.60.0030.01316.57
7.4.50.0000.00816.85
7.4.40.0030.01416.61
7.4.30.0120.00316.86
7.4.00.0040.01115.29
7.3.330.0050.00013.30
7.3.320.0000.00513.21
7.3.310.0000.00716.50
7.3.300.0070.00016.38
7.3.290.0060.00916.49
7.3.280.0040.01116.44
7.3.270.0140.00417.40
7.3.260.0130.01016.67
7.3.250.0120.00716.49
7.3.240.0130.00616.53
7.3.230.0100.01016.84
7.3.210.0160.00016.41
7.3.200.0150.00619.39
7.3.190.0100.00716.49
7.3.180.0100.00716.42
7.3.170.0030.01916.64
7.3.160.0100.00616.74
7.3.10.0060.00916.64
7.3.00.0110.00416.51
7.2.330.0190.00316.87
7.2.320.0070.01016.92
7.2.310.0000.01716.87
7.2.300.0190.00316.93
7.2.290.0060.01617.02
7.2.130.0090.00917.26
7.2.120.0050.00517.09
7.2.110.0060.01017.22
7.2.100.0060.00617.19
7.2.90.0070.00717.21
7.2.80.0030.01217.20
7.2.70.0030.00917.18
7.2.60.0090.00417.32
7.2.50.0040.00417.16
7.2.40.0000.01416.96
7.2.30.0060.00317.22
7.2.20.0030.00716.98
7.2.10.0060.00617.11
7.2.00.0070.00518.41
7.1.250.0070.01016.05
7.1.200.0030.00715.97
7.1.100.0070.00718.20
7.1.70.0000.00817.34
7.1.60.0070.01819.32
7.1.50.0060.00617.09
7.1.00.0000.08022.48
7.0.200.0030.00616.95
7.0.140.0070.06322.18
7.0.60.0030.08319.83
7.0.50.0030.05317.91
7.0.40.0100.08319.90
7.0.30.0500.06720.00
7.0.20.0230.07720.01
7.0.10.0070.08720.16
7.0.00.0130.08320.19
5.6.280.0030.07020.92
5.6.210.0130.06320.62
5.6.200.0070.04318.11
5.6.190.0070.04320.44
5.6.180.0470.06320.38
5.6.170.0300.07320.50
5.6.160.0070.08320.71
5.6.150.0070.07318.18
5.6.140.0130.07718.08
5.6.130.0070.07318.17
5.6.120.0170.06720.88
5.6.110.0070.07721.00
5.6.100.0030.08320.96
5.6.90.0170.07321.10
5.6.80.0070.03720.53
5.5.350.0170.08320.52
5.5.340.0070.07017.98
5.5.330.0000.05320.20
5.5.320.0330.04320.17
5.5.310.0270.07020.29
5.5.300.0130.08018.01
5.5.290.0130.07317.95
5.5.280.0070.07720.82
5.5.270.0100.07320.95
5.5.260.0100.06020.95
5.5.250.0100.08020.69
5.5.240.0130.07320.25
5.4.450.0530.04719.48
5.4.440.0600.05719.60
5.4.430.0830.04019.40
5.4.420.0600.06319.62
5.4.410.0070.05319.50
5.4.400.0900.06319.28
5.4.390.0330.04719.19
5.4.380.0470.05018.47
5.4.370.0270.05018.72
5.4.360.0230.05318.61
5.4.350.0300.05018.50
5.4.340.0300.04718.74
5.4.320.0100.03712.46
5.4.310.0070.03712.45
5.4.300.0060.03712.46
5.4.290.0110.03412.45
5.4.280.0020.04712.35
5.4.270.0090.03612.35
5.4.260.0070.04112.35
5.4.250.0090.04012.35
5.4.240.0090.03512.35
5.4.230.0060.03812.34
5.4.220.0070.03412.34
5.4.210.0040.03612.34
5.4.200.0050.03812.34
5.4.190.0050.03612.34
5.4.180.0070.03412.34
5.4.170.0050.03712.35
5.4.160.0080.03612.35
5.4.150.0080.03512.34
5.4.140.0040.03912.03
5.4.130.0070.03412.02
5.4.120.0030.03711.97
5.4.110.0040.03711.96
5.4.100.0070.03411.97
5.4.90.0080.03811.97
5.4.80.0070.03711.96
5.4.70.0070.04111.96
5.4.60.0080.03311.96
5.4.50.0090.03711.96
5.4.40.0090.03211.95
5.4.30.0040.03711.95
5.4.20.0080.03411.95
5.4.10.0030.03611.95
5.4.00.0050.03511.44
5.3.290.0060.04012.80
5.3.280.0070.03712.71
5.3.270.0080.03912.72
5.3.260.0060.03812.72
5.3.250.0070.03612.72
5.3.240.0060.03812.72
5.3.230.0040.04012.71
5.3.220.0090.03512.68
5.3.210.0060.03912.68
5.3.200.0080.03412.68
5.3.190.0080.04212.67
5.3.180.0070.03512.67
5.3.170.0050.03812.67
5.3.160.0080.03612.67
5.3.150.0070.03812.68
5.3.140.0060.03512.66
5.3.130.0050.04612.66
5.3.120.0090.03612.66
5.3.110.0090.03712.66
5.3.100.0050.03912.12
5.3.90.0030.04712.08
5.3.80.0050.04312.07
5.3.70.0100.04312.07
5.3.60.0070.03512.06
5.3.50.0090.03912.00
5.3.40.0040.04212.00
5.3.30.0080.04011.95
5.3.20.0100.03811.73
5.3.10.0050.03511.69
5.3.00.0060.04311.68
5.2.170.0090.0319.19
5.2.160.0100.0319.19
5.2.150.0080.0299.19
5.2.140.0080.0399.18
5.2.130.0060.0319.15
5.2.120.0040.0339.14
5.2.110.0060.0319.15
5.2.100.0100.0299.14
5.2.90.0100.0309.14
5.2.80.0070.0289.14
5.2.70.0040.0319.14
5.2.60.0070.0369.09
5.2.50.0050.0329.06
5.2.40.0060.0309.04
5.2.30.0070.0319.02
5.2.20.0060.0349.00
5.2.10.0080.0308.93
5.2.00.0040.0298.79
5.1.60.0040.0278.07
5.1.50.0050.0308.07
5.1.40.0010.0278.04
5.1.30.0070.0228.40
5.1.20.0030.0278.41
5.1.10.0090.0208.14
5.1.00.0050.0248.14
5.0.50.0060.0236.62
5.0.40.0050.0186.48
5.0.30.0030.0316.29
5.0.20.0020.0206.27
5.0.10.0020.0206.24
5.0.00.0040.0356.23
4.4.90.0030.0174.78
4.4.80.0040.0144.76
4.4.70.0030.0204.76
4.4.60.0010.0194.75
4.4.50.0060.0224.77
4.4.40.0020.0264.71
4.4.30.0030.0164.75
4.4.20.0060.0214.84
4.4.10.0030.0154.85
4.4.00.0030.0264.76
4.3.110.0020.0234.67
4.3.100.0020.0204.66
4.3.90.0020.0154.64
4.3.80.0010.0324.59
4.3.70.0030.0214.63
4.3.60.0040.0194.63
4.3.50.0020.0264.63
4.3.40.0040.0294.54
4.3.30.0050.0193.28
4.3.20.0040.0173.25
4.3.10.0030.0173.22
4.3.00.0030.0237.56

preferences:
64.99 ms | 401 KiB | 5 Q