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-01-07'); $end->modify('first day of this month'); $interval = DateInterval::createFromDateString('1 week'); $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.60.0150.00616.50
8.3.50.0130.00622.85
8.3.40.0070.00718.92
8.3.30.0100.00319.10
8.3.20.0000.00720.34
8.3.10.0040.00421.73
8.3.00.0080.00019.50
8.2.180.0090.00916.88
8.2.170.0070.00722.96
8.2.160.0150.00020.41
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00021.10
8.2.110.0060.00319.30
8.2.100.0060.00618.03
8.2.90.0000.00818.15
8.2.80.0000.00817.97
8.2.70.0050.00317.63
8.2.60.0100.00018.16
8.2.50.0030.00618.07
8.2.40.0060.00319.88
8.2.30.0000.00718.12
8.2.20.0040.00417.96
8.2.10.0040.00418.08
8.2.00.0050.00317.83
8.1.280.0100.00725.92
8.1.270.0050.00523.88
8.1.260.0030.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00622.07
8.1.230.0080.00322.82
8.1.220.0050.00317.77
8.1.210.0080.00018.89
8.1.200.0030.00617.48
8.1.190.0040.00417.47
8.1.180.0070.00018.10
8.1.170.0050.00318.72
8.1.160.0040.00422.06
8.1.150.0040.00419.03
8.1.140.0000.00717.66
8.1.130.0000.00717.97
8.1.120.0070.00417.63
8.1.110.0000.00717.72
8.1.100.0040.00317.70
8.1.90.0040.00417.65
8.1.80.0050.00217.76
8.1.70.0030.00317.67
8.1.60.0060.00317.82
8.1.50.0000.00817.65
8.1.40.0040.00417.68
8.1.30.0080.00017.79
8.1.20.0050.00317.71
8.1.10.0040.00417.73
8.1.00.0000.00817.71
8.0.300.0040.00420.02
8.0.290.0040.00416.88
8.0.280.0090.00018.50
8.0.270.0000.01017.46
8.0.260.0000.00617.41
8.0.250.0000.00717.13
8.0.240.0070.00017.25
8.0.230.0040.00417.23
8.0.220.0030.00317.14
8.0.210.0030.00317.09
8.0.200.0000.00617.17
8.0.190.0040.00417.22
8.0.180.0000.00817.16
8.0.170.0040.00417.19
8.0.160.0000.00717.26
8.0.150.0000.00717.13
8.0.140.0040.00417.07
8.0.130.0050.00013.53
8.0.120.0080.00017.13
8.0.110.0050.00217.01
8.0.100.0040.00417.03
8.0.90.0000.00716.95
8.0.80.0030.01517.12
8.0.70.0040.00417.14
8.0.60.0040.00417.11
8.0.50.0000.00717.01
8.0.30.0090.01117.40
8.0.20.0100.01017.45
8.0.10.0040.00417.18
8.0.00.0080.01017.13
7.4.330.0040.00315.00
7.4.320.0070.00016.71
7.4.300.0030.00316.81
7.4.290.0000.00716.70
7.4.280.0000.00716.65
7.4.270.0030.00316.82
7.4.260.0000.00716.69
7.4.250.0020.00516.66
7.4.240.0040.00316.76
7.4.230.0000.00716.89
7.4.220.0120.00616.77
7.4.210.0040.01416.89
7.4.200.0000.00716.92
7.4.160.0070.01016.85
7.4.150.0100.00717.40
7.4.140.0130.00817.86
7.4.130.0110.01216.66
7.4.120.0130.00316.73
7.4.110.0110.01116.88
7.4.100.0070.01016.69
7.4.90.0100.00716.73
7.4.80.0100.01319.39
7.4.70.0140.00316.77
7.4.60.0110.00716.69
7.4.50.0050.00316.43
7.4.40.0120.00916.47
7.4.30.0040.01216.79
7.4.00.0100.00715.34
7.3.330.0030.00313.16
7.3.320.0030.00313.14
7.3.310.0020.00516.27
7.3.300.0040.00416.31
7.3.290.0090.00616.35
7.3.280.0100.00716.40
7.3.270.0070.01017.40
7.3.260.0190.00316.63
7.3.250.0080.00916.58
7.3.240.0150.00416.48
7.3.230.0100.00716.68
7.3.210.0130.00316.50
7.3.200.0090.01219.39
7.3.190.0060.01016.73
7.3.180.0170.00016.86
7.3.170.0160.00016.42
7.3.160.0120.00416.71
7.3.10.0040.01116.87
7.3.00.0030.01416.79
7.2.330.0090.00916.89
7.2.320.0070.01116.86
7.2.310.0080.00816.63
7.2.300.0070.01516.95
7.2.290.0100.01016.68
7.2.130.0030.01016.80
7.2.120.0090.00616.85
7.2.110.0070.01317.02
7.2.100.0060.00917.01
7.2.90.0030.01316.72
7.2.80.0090.00616.75
7.2.70.0040.01116.61
7.2.60.0090.00617.11
7.2.50.0030.00817.06
7.2.40.0090.00317.01
7.2.30.0080.00816.99
7.2.20.0120.00317.15
7.2.10.0030.01316.82
7.2.00.0040.00718.46
7.1.250.0050.00515.97
7.1.100.0040.00818.14
7.1.70.0050.00317.32
7.1.60.0040.02119.46
7.1.50.0070.01417.09
7.1.00.0070.07322.51
7.0.200.0080.00317.02
7.0.140.0000.07722.13
7.0.60.0170.07719.98
7.0.50.0070.07717.83
7.0.40.0100.04720.37
7.0.30.0370.06720.13
7.0.20.0170.04720.00
7.0.10.0100.08320.17
7.0.00.0100.07320.20
5.6.280.0030.07321.06
5.6.210.0170.07020.47
5.6.200.0000.05318.10
5.6.190.0030.05320.61
5.6.180.0370.04320.33
5.6.170.0300.07320.38
5.6.160.0130.08020.37
5.6.150.0100.06318.13
5.6.140.0030.05318.21
5.6.130.0100.03718.11
5.6.120.0000.04720.88
5.6.110.0030.08721.04
5.6.100.0100.06720.97
5.6.90.0030.06721.13
5.6.80.0170.07020.42
5.5.350.0200.03020.43
5.5.340.0070.07318.03
5.5.330.0070.05320.57
5.5.320.0300.05020.30
5.5.310.0400.05320.30
5.5.300.0070.05017.92
5.5.290.0070.03717.96
5.5.280.0130.06720.68
5.5.270.0100.05720.85
5.5.260.0030.04020.60
5.5.250.0030.04720.68
5.5.240.0200.07320.06
5.4.450.0030.05719.21
5.4.440.0170.04319.39
5.4.430.0100.04019.45
5.4.420.0200.04719.21
5.4.410.0100.03019.09
5.4.400.0200.02719.22
5.4.390.0030.05019.22
5.4.380.1170.05718.46
5.4.370.1330.05018.64
5.4.360.1200.06718.50
5.4.350.1000.07018.77
5.4.340.1230.07018.74
5.4.320.0090.03512.45
5.4.310.0050.04012.45
5.4.300.0090.03412.46
5.4.290.0040.03812.45
5.4.280.0040.04112.35
5.4.270.0060.03912.35
5.4.260.0050.04112.35
5.4.250.0060.03812.35
5.4.240.0050.03612.35
5.4.230.0060.04312.34
5.4.220.0040.03812.34
5.4.210.0100.03712.34
5.4.200.0070.04112.34
5.4.190.0050.03712.34
5.4.180.0060.04212.34
5.4.170.0080.03412.35
5.4.160.0090.03212.35
5.4.150.0090.04012.34
5.4.140.0050.04212.03
5.4.130.0060.03812.01
5.4.120.0070.03311.97
5.4.110.0040.03611.97
5.4.100.0050.03711.97
5.4.90.0040.03711.97
5.4.80.0040.04711.96
5.4.70.0040.03511.96
5.4.60.0070.03211.96
5.4.50.0030.03811.96
5.4.40.0050.03511.95
5.4.30.0020.03811.95
5.4.20.0050.03611.95
5.4.10.0080.03511.95
5.4.00.0070.03911.44
5.3.290.0030.04212.80
5.3.280.0060.03712.71
5.3.270.0050.04212.72
5.3.260.0070.04012.72
5.3.250.0020.04012.72
5.3.240.0060.03612.72
5.3.230.0080.03512.71
5.3.220.0050.04612.68
5.3.210.0070.03712.68
5.3.200.0020.03912.68
5.3.190.0070.03512.68
5.3.180.0030.04912.67
5.3.170.0030.03712.67
5.3.160.0050.03612.68
5.3.150.0050.03712.67
5.3.140.0060.03512.66
5.3.130.0060.04012.66
5.3.120.0030.04212.65
5.3.110.0060.04012.66
5.3.100.0080.04412.12
5.3.90.0070.03812.08
5.3.80.0090.04212.07
5.3.70.0100.03712.08
5.3.60.0110.04212.07
5.3.50.0070.03912.00
5.3.40.0080.03912.00
5.3.30.0040.03711.95
5.3.20.0090.03311.72
5.3.10.0090.03011.69
5.3.00.0070.04011.68
5.2.170.0010.0339.19
5.2.160.0030.0309.19
5.2.150.0030.0319.19
5.2.140.0050.0309.19
5.2.130.0050.0279.14
5.2.120.0040.0289.14
5.2.110.0050.0299.15
5.2.100.0050.0299.14
5.2.90.0020.0319.14
5.2.80.0040.0309.14
5.2.70.0070.0389.14
5.2.60.0080.0319.10
5.2.50.0070.0279.06
5.2.40.0080.0329.04
5.2.30.0040.0309.02
5.2.20.0060.0279.01
5.2.10.0050.0278.93
5.2.00.0120.0228.79
5.1.60.0050.0228.07
5.1.50.0030.0258.06
5.1.40.0040.0238.05
5.1.30.0040.0318.40
5.1.20.0020.0288.42
5.1.10.0050.0258.14
5.1.00.0050.0248.14
5.0.50.0040.0206.61
5.0.40.0050.0186.48
5.0.30.0000.0356.29
5.0.20.0050.0196.26
5.0.10.0050.0176.24
5.0.00.0070.0326.23
4.4.90.0070.0204.78
4.4.80.0040.0144.75
4.4.70.0060.0174.75
4.4.60.0080.0154.75
4.4.50.0040.0184.77
4.4.40.0020.0274.71
4.4.30.0030.0214.76
4.4.20.0020.0174.84
4.4.10.0040.0144.85
4.4.00.0050.0324.76
4.3.110.0040.0184.67
4.3.100.0020.0154.66
4.3.90.0040.0214.64
4.3.80.0030.0244.59
4.3.70.0040.0134.63
4.3.60.0020.0154.63
4.3.50.0010.0174.63
4.3.40.0050.0224.54
4.3.30.0010.0173.28
4.3.20.0010.0173.26
4.3.10.0020.0153.21
4.3.00.0000.01314.87

preferences:
41.92 ms | 401 KiB | 5 Q