3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2014-01-01'); $start->modify('first day of this month'); $end = new DateTime('2014-02-04'); $end->modify('first day of this month'); $interval = DateInterval::createFromDateString('1 month'); $period = new DatePeriod($start, $interval, $end); foreach ($period as $dt) { echo $dt->format("Y-m-d") . 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.70.0180.00416.58
8.3.60.0100.01016.75
8.3.50.0180.00523.01
8.3.40.0070.00718.98
8.3.30.0000.01419.22
8.3.20.0030.00520.16
8.3.10.0080.00023.66
8.3.00.0040.00419.63
8.2.180.0090.00617.00
8.2.170.0070.00722.96
8.2.160.0060.00920.38
8.2.150.0030.00624.18
8.2.140.0000.00724.66
8.2.130.0070.00726.16
8.2.120.0080.00021.15
8.2.110.0040.00420.64
8.2.100.0070.00418.34
8.2.90.0040.00419.17
8.2.80.0000.00818.00
8.2.70.0030.00517.75
8.2.60.0060.00318.05
8.2.50.0090.00018.07
8.2.40.0000.00918.47
8.2.30.0080.00018.14
8.2.20.0040.00417.95
8.2.10.0040.00418.09
8.2.00.0040.00417.96
8.1.280.0150.00025.92
8.1.270.0000.00923.78
8.1.260.0020.00526.35
8.1.250.0040.00428.09
8.1.240.0060.00322.20
8.1.230.0080.00419.23
8.1.220.0040.00417.91
8.1.210.0040.00418.77
8.1.200.0030.00617.60
8.1.190.0050.00317.47
8.1.180.0040.00418.10
8.1.170.0080.00018.60
8.1.160.0070.00022.02
8.1.150.0020.00518.95
8.1.140.0000.00717.78
8.1.130.0000.00717.88
8.1.120.0040.00417.76
8.1.110.0040.00417.58
8.1.100.0030.00517.77
8.1.90.0000.00817.61
8.1.80.0040.00417.74
8.1.70.0000.00717.70
8.1.60.0030.00917.71
8.1.50.0000.00917.71
8.1.40.0040.00417.59
8.1.30.0020.00517.82
8.1.20.0000.00817.83
8.1.10.0040.00417.64
8.1.00.0040.00417.79
8.0.300.0080.00018.77
8.0.290.0080.00017.00
8.0.280.0000.00718.46
8.0.270.0050.00217.28
8.0.260.0030.00317.31
8.0.250.0060.00017.13
8.0.240.0040.00417.22
8.0.230.0040.00417.11
8.0.220.0000.00717.17
8.0.210.0070.00017.16
8.0.200.0030.00517.18
8.0.190.0080.00017.22
8.0.180.0000.00717.21
8.0.170.0030.00517.22
8.0.160.0000.00817.26
8.0.150.0040.00417.11
8.0.140.0070.00017.09
8.0.130.0050.00013.61
8.0.120.0000.00817.10
8.0.110.0000.00817.15
8.0.100.0040.00417.12
8.0.90.0050.00217.05
8.0.80.0000.01517.20
8.0.70.0050.00217.11
8.0.60.0070.00017.16
8.0.50.0050.00317.07
8.0.30.0090.01117.19
8.0.20.0090.01517.46
8.0.10.0030.00617.23
8.0.00.0050.01316.81
7.4.330.0060.00015.17
7.4.320.0030.00316.79
7.4.300.0000.00616.75
7.4.290.0080.00016.68
7.4.280.0060.00316.62
7.4.270.0000.00716.59
7.4.260.0000.00716.84
7.4.250.0030.00516.69
7.4.240.0040.00416.67
7.4.230.0070.00016.89
7.4.220.0050.01016.73
7.4.210.0040.01016.76
7.4.200.0070.00016.91
7.4.160.0060.00916.55
7.4.150.0050.01317.40
7.4.140.0110.00617.86
7.4.130.0120.00516.71
7.4.120.0090.00916.78
7.4.110.0090.01516.73
7.4.100.0070.01316.57
7.4.90.0100.00716.81
7.4.80.0130.01019.39
7.4.70.0060.01316.75
7.4.60.0060.00916.56
7.4.50.0000.00816.79
7.4.40.0120.00616.73
7.4.30.0090.00616.75
7.4.00.0070.01015.36
7.3.330.0070.00013.37
7.3.320.0060.00013.31
7.3.310.0000.00716.30
7.3.300.0030.00316.36
7.3.290.0090.00616.46
7.3.280.0100.00816.43
7.3.270.0070.01717.40
7.3.260.0140.00416.61
7.3.250.0110.00716.55
7.3.240.0130.00316.36
7.3.230.0100.00716.88
7.3.210.0030.01316.32
7.3.200.0060.01319.39
7.3.190.0110.00516.49
7.3.180.0100.00716.93
7.3.170.0080.00816.68
7.3.160.0050.01016.82
7.3.120.0100.00314.58
7.3.110.0070.01015.00
7.3.100.0040.01115.02
7.3.90.0070.00715.10
7.3.80.0030.01015.16
7.3.70.0030.01415.06
7.3.60.0030.01214.93
7.3.50.0100.00314.90
7.3.40.0070.01015.05
7.3.30.0080.00314.95
7.3.20.0060.00916.80
7.3.10.0060.01016.77
7.3.00.0030.01216.74
7.2.330.0100.00716.82
7.2.320.0040.01417.03
7.2.310.0130.01316.77
7.2.300.0140.00816.71
7.2.290.0090.00916.78
7.2.240.0030.00714.96
7.2.230.0100.00715.27
7.2.220.0000.01515.18
7.2.210.0060.00815.03
7.2.200.0100.00715.36
7.2.190.0090.00615.06
7.2.180.0070.00715.16
7.2.170.0030.00715.18
7.2.160.0040.01115.05
7.2.150.0100.00617.23
7.2.140.0100.00716.93
7.2.130.0080.00617.15
7.2.120.0080.00716.95
7.2.110.0060.00717.18
7.2.100.0030.01217.27
7.2.90.0050.01117.28
7.2.80.0030.01317.07
7.2.70.0050.01017.22
7.2.60.0070.00717.08
7.2.50.0060.00917.06
7.2.40.0060.00817.13
7.2.30.0040.01017.20
7.2.20.0080.00417.13
7.2.10.0040.00917.15
7.2.00.0050.01117.99
7.1.330.0070.00715.99
7.1.320.0000.01315.83
7.1.310.0030.01015.99
7.1.300.0060.00915.96
7.1.290.0120.00415.66
7.1.280.0070.00716.09
7.1.270.0060.00915.77
7.1.260.0060.01015.65
7.1.250.0080.00715.98
7.1.100.0030.01018.53
7.1.70.0000.01017.38
7.1.60.0100.01019.46
7.1.50.0070.01517.21
7.1.00.0130.06722.57
7.0.200.0000.00817.14
7.0.140.0070.07021.92
7.0.60.0000.09319.98
7.0.50.0030.04317.93
7.0.40.0070.04020.12
7.0.30.0200.04020.02
7.0.20.0270.05020.12
7.0.10.0070.08020.33
7.0.00.0100.07320.20
5.6.280.0000.07720.92
5.6.210.0070.04020.64
5.6.200.0230.07018.13
5.6.190.0030.09020.64
5.6.180.0370.07720.57
5.6.170.0300.07320.41
5.6.160.0100.04020.41
5.6.150.0030.04018.13
5.6.140.0100.07318.14
5.6.130.0100.08318.09
5.6.120.0100.05320.97
5.6.110.0070.06320.95
5.6.100.0130.07721.00
5.6.90.0130.06321.03
5.6.80.0070.03720.28
5.6.70.3370.03020.38
5.5.350.0130.08020.39
5.5.340.0030.04017.92
5.5.330.0070.08320.56
5.5.320.0070.04320.20
5.5.310.0330.05720.23
5.5.300.0000.08017.89
5.5.290.0170.07717.93
5.5.280.0070.07020.89
5.5.270.0170.06720.76
5.5.260.0200.07320.88
5.5.250.0170.06320.68
5.5.240.0330.07320.16
5.4.450.0070.04319.39
5.4.440.0170.04319.55
5.4.430.0130.04319.13
5.4.420.0100.04719.54
5.4.410.0130.04019.29
5.4.400.0100.03019.15
5.4.390.0130.04019.13
5.4.380.0470.05318.52
5.4.370.0370.05318.45
5.4.360.0370.06018.59
5.4.350.0300.06018.65
5.4.340.0330.05318.56
5.4.320.0100.04012.45
5.4.310.0070.03712.45
5.4.300.0080.03712.46
5.4.290.0080.03612.45
5.4.280.0060.03412.35
5.4.270.0050.04312.35
5.4.260.0050.04312.35
5.4.250.0070.04312.35
5.4.240.0030.03712.35
5.4.230.0040.03812.34
5.4.220.0070.03212.34
5.4.210.0030.03612.34
5.4.200.0050.03712.34
5.4.190.0050.03512.34
5.4.180.0060.03712.34
5.4.170.0070.03712.35
5.4.160.0030.03712.34
5.4.150.0040.03712.34
5.4.140.0060.03812.02
5.4.130.0050.03512.01
5.4.120.0050.03411.97
5.4.110.0060.03411.96
5.4.100.0070.03311.96
5.4.90.0040.03811.97
5.4.80.0060.03611.96
5.4.70.0060.03411.96
5.4.60.0070.03311.96
5.4.50.0050.04311.96
5.4.40.0090.03011.96
5.4.30.0060.03411.95
5.4.20.0030.03611.95
5.4.10.0110.03511.95
5.4.00.0060.04111.44
5.3.290.0080.04212.80
5.3.280.0070.03612.71
5.3.270.0080.04012.72
5.3.260.0060.03912.71
5.3.250.0060.03812.72
5.3.240.0080.03512.71
5.3.230.0060.04112.71
5.3.220.0060.03712.68
5.3.210.0050.03812.68
5.3.200.0060.03412.68
5.3.190.0090.03412.68
5.3.180.0040.03912.67
5.3.170.0080.04012.67
5.3.160.0050.03912.68
5.3.150.0080.03912.67
5.3.140.0100.03512.66
5.3.130.0100.03812.66
5.3.120.0080.03912.66
5.3.110.0070.03712.66
5.3.100.0050.03712.12
5.3.90.0060.03512.08
5.3.80.0070.03412.07
5.3.70.0080.03512.07
5.3.60.0060.03612.07
5.3.50.0020.04312.00
5.3.40.0060.03512.00
5.3.30.0060.03811.95
5.3.20.0090.03811.73
5.3.10.0040.03611.69
5.3.00.0050.03511.68
5.2.170.0060.0289.19
5.2.160.0030.0309.18
5.2.150.0040.0339.19
5.2.140.0050.0299.19
5.2.130.0040.0289.14
5.2.120.0050.0279.14
5.2.110.0050.0319.15
5.2.100.0060.0269.14
5.2.90.0030.0299.14
5.2.80.0070.0279.14
5.2.70.0050.0309.14
5.2.60.0040.0309.09
5.2.50.0040.0299.07
5.2.40.0030.0309.04
5.2.30.0020.0329.02
5.2.20.0050.0379.00
5.2.10.0020.0298.93
5.2.00.0040.0298.79
5.1.60.0000.0278.07
5.1.50.0030.0258.06
5.1.40.0060.0228.05
5.1.30.0040.0278.40
5.1.20.0050.0288.42
5.1.10.0040.0288.14
5.1.00.0060.0328.14
5.0.50.0040.0266.62
5.0.40.0030.0266.48
5.0.30.0050.0296.29
5.0.20.0050.0196.26
5.0.10.0030.0276.24
5.0.00.0040.0326.24
4.4.90.0010.0254.77
4.4.80.0020.0154.75
4.4.70.0040.0234.76
4.4.60.0020.0164.76
4.4.50.0030.0144.77
4.4.40.0040.0324.71
4.4.30.0030.0154.76
4.4.20.0050.0134.84
4.4.10.0040.0144.85
4.4.00.0020.0254.75
4.3.110.0050.0134.67
4.3.100.0020.0154.66
4.3.90.0030.0134.63
4.3.80.0050.0214.58
4.3.70.0000.0164.63
4.3.60.0040.0134.63
4.3.50.0020.0154.63
4.3.40.0010.0244.54
4.3.30.0040.0133.28
4.3.20.0010.0163.26
4.3.10.0010.0163.22
4.3.00.0030.01714.87

preferences:
46.94 ms | 401 KiB | 5 Q