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-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.0100.01016.63
8.3.50.0130.01022.93
8.3.40.0150.00019.07
8.3.30.0100.00319.08
8.3.20.0040.00420.38
8.3.10.0050.00323.65
8.3.00.0040.00419.38
8.2.180.0100.00716.63
8.2.170.0110.00422.96
8.2.160.0050.01020.34
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00621.16
8.2.110.0030.00620.52
8.2.100.0000.01118.34
8.2.90.0070.00019.13
8.2.80.0000.00817.97
8.2.70.0060.00317.75
8.2.60.0000.00817.93
8.2.50.0030.00518.07
8.2.40.0060.00320.20
8.2.30.0000.00718.27
8.2.20.0000.00717.84
8.2.10.0040.00418.21
8.2.00.0040.00417.98
8.1.280.0090.00625.92
8.1.270.0080.00023.96
8.1.260.0030.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.24
8.1.230.0070.00419.15
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.38
8.1.190.0060.00317.60
8.1.180.0050.00318.10
8.1.170.0060.00318.90
8.1.160.0040.00421.99
8.1.150.0020.00518.93
8.1.140.0000.00717.69
8.1.130.0030.00317.94
8.1.120.0030.00617.63
8.1.110.0040.00417.71
8.1.100.0000.00817.72
8.1.90.0060.00317.65
8.1.80.0070.00017.72
8.1.70.0030.00317.66
8.1.60.0000.00817.80
8.1.50.0000.00817.80
8.1.40.0030.00617.68
8.1.30.0000.00817.87
8.1.20.0000.00717.86
8.1.10.0000.00717.65
8.1.00.0000.00817.77
8.0.300.0000.00818.77
8.0.290.0040.00417.00
8.0.280.0030.00618.58
8.0.270.0100.00017.39
8.0.260.0030.00317.40
8.0.250.0030.00317.27
8.0.240.0040.00417.12
8.0.230.0040.00417.21
8.0.220.0050.00217.18
8.0.210.0070.00017.20
8.0.200.0030.00317.24
8.0.190.0090.00017.18
8.0.180.0070.00017.18
8.0.170.0030.00617.11
8.0.160.0040.00417.04
8.0.150.0000.00717.13
8.0.140.0040.00417.02
8.0.130.0030.00313.46
8.0.120.0060.00317.16
8.0.110.0000.00817.17
8.0.100.0040.00417.05
8.0.90.0040.00417.14
8.0.80.0130.01017.14
8.0.70.0040.00417.19
8.0.60.0070.00017.13
8.0.50.0000.00717.11
8.0.30.0130.00717.29
8.0.20.0060.01417.40
8.0.10.0000.00717.12
8.0.00.0060.01216.87
7.4.330.0040.00415.00
7.4.320.0030.00316.77
7.4.300.0030.00316.76
7.4.290.0030.00316.61
7.4.280.0080.00016.77
7.4.270.0000.00716.80
7.4.260.0030.00316.79
7.4.250.0040.00416.79
7.4.240.0020.00516.78
7.4.230.0000.00716.46
7.4.220.0070.01116.79
7.4.210.0070.00716.88
7.4.200.0000.00716.69
7.4.160.0070.01016.84
7.4.150.0150.00717.40
7.4.140.0070.01017.86
7.4.130.0080.01216.75
7.4.120.0100.00816.86
7.4.110.0170.00016.59
7.4.100.0100.00716.76
7.4.90.0120.00616.65
7.4.80.0190.00319.39
7.4.70.0090.00616.58
7.4.60.0120.01216.69
7.4.50.0030.00516.99
7.4.40.0120.00616.93
7.4.30.0070.01016.88
7.4.00.0090.00915.15
7.3.330.0000.00513.33
7.3.320.0000.00513.32
7.3.310.0030.00316.56
7.3.300.0000.00616.46
7.3.290.0090.00616.42
7.3.280.0090.00916.53
7.3.270.0100.00617.40
7.3.260.0160.00616.42
7.3.250.0100.00716.68
7.3.240.0140.00316.67
7.3.230.0080.00816.46
7.3.210.0140.00516.44
7.3.200.0070.01019.39
7.3.190.0110.00616.79
7.3.180.0080.01116.72
7.3.170.0040.01516.57
7.3.160.0050.01216.85
7.3.120.0140.00415.03
7.3.110.0060.01215.25
7.3.100.0030.01415.36
7.3.90.0000.01715.16
7.3.80.0060.00315.17
7.3.70.0030.01215.00
7.3.60.0060.00315.14
7.3.50.0070.00714.95
7.3.40.0040.01215.11
7.3.30.0110.00714.78
7.3.20.0000.01216.69
7.3.10.0030.01016.89
7.3.00.0030.01116.76
7.2.330.0090.00916.81
7.2.320.0070.01016.86
7.2.310.0100.00716.77
7.2.300.0070.01016.82
7.2.290.0090.00916.98
7.2.250.0070.01415.56
7.2.240.0030.01715.36
7.2.230.0000.01815.23
7.2.220.0070.00715.44
7.2.210.0030.01015.12
7.2.200.0030.00715.39
7.2.190.0000.01415.15
7.2.180.0070.01015.31
7.2.170.0040.00715.12
7.2.00.0000.01519.51
7.1.330.0040.00815.94
7.1.320.0070.01016.16
7.1.310.0040.01115.91
7.1.300.0030.01016.21
7.1.290.0080.00816.00
7.1.280.0030.01016.00
7.1.270.0100.00016.12
7.1.260.0040.00815.86
7.1.100.0060.00618.46
7.1.70.0130.00317.06
7.1.60.0140.01019.46
7.1.50.0060.00617.12
7.1.00.0070.07322.50
7.0.200.0000.01017.11
7.0.140.0030.07721.95
7.0.60.0130.07719.79
7.0.50.0070.08017.89
7.0.40.0130.06720.40
7.0.30.0100.05320.15
7.0.20.0100.04720.17
7.0.10.0170.08020.21
7.0.00.0030.05320.21
5.6.210.0100.07320.66
5.6.200.0130.06318.23
5.6.190.0070.08720.36
5.6.180.0430.05320.27
5.6.170.0170.04020.54
5.6.160.0130.08020.49
5.6.150.0070.08018.11
5.6.140.0170.06318.17
5.6.130.0030.04318.08
5.6.120.0100.08320.94
5.6.110.0170.07721.02
5.6.100.0070.03720.99
5.6.90.0100.09020.96
5.6.80.0100.05020.36
5.5.350.0100.04020.43
5.5.340.0130.07317.97
5.5.330.0070.08320.37
5.5.320.0370.07320.27
5.5.310.0200.06020.17
5.5.300.0100.04317.91
5.5.290.0000.04317.87
5.5.280.0230.07020.96
5.5.270.0130.08320.73
5.5.260.0000.04720.67
5.5.250.0100.08320.69
5.5.240.0270.06320.11
5.4.450.0100.04319.58
5.4.440.0200.03719.57
5.4.430.0100.04019.11
5.4.420.0030.03719.14
5.4.410.0200.03319.44
5.4.400.0030.04019.11
5.4.390.0100.04318.94
5.4.380.0470.05718.57
5.4.370.0300.05018.68
5.4.360.0300.04718.61
5.4.350.0330.05718.52
5.4.340.0370.07018.49
5.4.320.0070.03412.46
5.4.310.0080.04112.45
5.4.300.0080.03312.46
5.4.290.0070.03512.45
5.4.280.0060.03412.35
5.4.270.0080.03512.35
5.4.260.0060.04012.35
5.4.250.0010.04312.35
5.4.240.0070.03412.35
5.4.230.0030.03812.34
5.4.220.0050.03512.34
5.4.210.0030.04112.34
5.4.200.0060.03912.34
5.4.190.0060.04412.34
5.4.180.0070.04312.34
5.4.170.0060.03712.35
5.4.160.0070.03312.35
5.4.150.0090.03112.34
5.4.140.0080.03412.03
5.4.130.0010.03812.02
5.4.120.0080.03111.97
5.4.110.0060.03411.97
5.4.100.0040.03511.97
5.4.90.0090.03211.96
5.4.80.0040.03811.96
5.4.70.0050.03311.96
5.4.60.0040.03511.96
5.4.50.0040.03611.96
5.4.40.0060.03311.95
5.4.30.0100.03211.95
5.4.20.0090.03111.95
5.4.10.0060.03311.95
5.4.00.0030.03711.44
5.3.290.0040.04412.80
5.3.280.0050.03712.71
5.3.270.0090.03812.72
5.3.260.0090.03612.72
5.3.250.0060.03812.72
5.3.240.0050.04512.72
5.3.230.0030.04012.71
5.3.220.0070.03612.68
5.3.210.0030.04012.68
5.3.200.0050.03812.68
5.3.190.0080.03912.68
5.3.180.0060.03512.67
5.3.170.0030.04112.66
5.3.160.0030.04112.67
5.3.150.0030.03912.68
5.3.140.0070.03912.66
5.3.130.0030.04512.66
5.3.120.0070.03712.66
5.3.110.0070.03712.66
5.3.100.0060.03612.12
5.3.90.0100.03112.08
5.3.80.0080.03912.08
5.3.70.0070.03912.07
5.3.60.0080.04212.07
5.3.50.0100.03012.00
5.3.40.0060.04012.00
5.3.30.0060.03511.95
5.3.20.0110.03611.73
5.3.10.0070.03411.70
5.3.00.0040.03711.68
5.2.170.0050.0319.19
5.2.160.0030.0369.19
5.2.150.0050.0289.19
5.2.140.0040.0359.18
5.2.130.0040.0369.15
5.2.120.0040.0309.14
5.2.110.0070.0269.15
5.2.100.0040.0349.14
5.2.90.0040.0309.14
5.2.80.0040.0319.14
5.2.70.0040.0309.14
5.2.60.0060.0349.10
5.2.50.0060.0309.06
5.2.40.0020.0329.04
5.2.30.0030.0369.02
5.2.20.0030.0319.00
5.2.10.0040.0288.93
5.2.00.0070.0268.79
5.1.60.0040.0238.07
5.1.50.0020.0348.07
5.1.40.0040.0308.04
5.1.30.0030.0268.39
5.1.20.0040.0288.41
5.1.10.0060.0238.14
5.1.00.0040.0258.14
5.0.50.0060.0266.62
5.0.40.0050.0216.48
5.0.30.0040.0336.29
5.0.20.0070.0186.26
5.0.10.0050.0206.24
5.0.00.0040.0296.24
4.4.90.0020.0154.78
4.4.80.0060.0134.75
4.4.70.0020.0194.75
4.4.60.0040.0234.76
4.4.50.0040.0214.77
4.4.40.0030.0294.71
4.4.30.0050.0244.76
4.4.20.0010.0164.85
4.4.10.0050.0164.85
4.4.00.0020.0254.76
4.3.110.0050.0154.67
4.3.100.0030.0224.66
4.3.90.0020.0144.64
4.3.80.0010.0254.58
4.3.70.0040.0134.63
4.3.60.0010.0164.63
4.3.50.0020.0154.63
4.3.40.0020.0244.54
4.3.30.0010.0173.28
4.3.20.0020.0163.25
4.3.10.0050.0133.22
4.3.00.0000.01314.87

preferences:
41.92 ms | 401 KiB | 5 Q