3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2014-09-13'); $start->modify('first day of this month'); $end = new DateTime(date("Y-m-d")); $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-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.40.0140.00419.04
8.3.30.0070.00719.21
8.3.20.0070.00020.34
8.3.10.0050.00321.73
8.3.00.0070.00018.97
8.2.170.0140.00422.96
8.2.160.0100.00322.33
8.2.150.0000.00824.18
8.2.140.0000.00924.66
8.2.130.0070.00026.16
8.2.120.0040.00819.79
8.2.110.0060.00322.38
8.2.100.0080.00419.41
8.2.90.0050.00319.32
8.2.80.0060.00317.97
8.2.70.0110.00017.88
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0040.00419.94
8.2.30.0040.00418.22
8.2.20.0000.00918.03
8.2.10.0000.00818.16
8.2.00.0000.00817.95
8.1.270.0040.00419.13
8.1.260.0130.00626.35
8.1.250.0050.00228.09
8.1.240.0030.00624.04
8.1.230.0040.00819.16
8.1.220.0000.00817.79
8.1.210.0000.00818.77
8.1.200.0060.00317.61
8.1.190.0000.00817.48
8.1.180.0050.00318.10
8.1.170.0050.00518.53
8.1.160.0040.00422.04
8.1.150.0000.00718.95
8.1.140.0060.00319.54
8.1.130.0030.00717.92
8.1.120.0050.00217.59
8.1.110.0050.00317.75
8.1.100.0060.00317.71
8.1.90.0040.00417.77
8.1.80.0000.00717.73
8.1.70.0070.00017.66
8.1.60.0090.00017.68
8.1.50.0030.00617.72
8.1.40.0000.00817.74
8.1.30.0000.00817.86
8.1.20.0040.00417.73
8.1.10.0030.00617.71
8.1.00.0080.00017.69
8.0.300.0040.00418.77
8.0.290.0080.00016.88
8.0.280.0070.00018.53
8.0.270.0030.00317.47
8.0.260.0080.00017.36
8.0.250.0030.00317.27
8.0.240.0000.00717.27
8.0.230.0000.00917.25
8.0.220.0040.00417.09
8.0.210.0000.00717.11
8.0.200.0040.00417.30
8.0.190.0040.00417.23
8.0.180.0070.00017.05
8.0.170.0060.00317.20
8.0.160.0070.00017.19
8.0.150.0000.00717.08
8.0.140.0000.00717.05
8.0.130.0000.00513.55
8.0.120.0030.00617.04
8.0.110.0050.00317.16
8.0.100.0040.00417.21
8.0.90.0050.00217.22
8.0.80.0120.01317.18
8.0.70.0030.00517.07
8.0.60.0000.00717.19
8.0.50.0000.00717.06
8.0.30.0070.01017.23
8.0.20.0110.01017.43
8.0.10.0040.00417.16
8.0.00.0090.00817.05
7.4.330.0060.00015.13
7.4.320.0030.00316.79
7.4.300.0060.00016.80
7.4.290.0030.00316.85
7.4.280.0000.00816.71
7.4.270.0000.00716.87
7.4.260.0000.00716.84
7.4.250.0000.00716.68
7.4.240.0020.00516.72
7.4.230.0030.00316.72
7.4.220.0070.01116.74
7.4.210.0080.01216.61
7.4.200.0000.00716.94
7.4.160.0120.00916.73
7.4.150.0120.00617.40
7.4.140.0100.00717.86
7.4.130.0090.00916.82
7.4.120.0070.01016.73
7.4.110.0130.01016.77
7.4.100.0130.00416.58
7.4.90.0070.01016.60
7.4.80.0130.00719.39
7.4.70.0060.01216.84
7.4.60.0090.00616.73
7.4.50.0000.00416.61
7.4.40.0100.00716.61
7.4.30.0040.01516.82
7.4.00.0060.01015.27
7.3.330.0000.00713.28
7.3.320.0030.00313.37
7.3.310.0070.00016.63
7.3.300.0070.00016.40
7.3.290.0070.01016.53
7.3.280.0090.00916.52
7.3.270.0070.01117.40
7.3.260.0120.00416.59
7.3.250.0120.00616.68
7.3.240.0030.01416.73
7.3.230.0140.00316.63
7.3.210.0140.00316.93
7.3.200.0070.01019.39
7.3.190.0160.00016.59
7.3.180.0090.00916.39
7.3.170.0140.00816.57
7.3.160.0100.00616.59
7.2.330.0040.01416.78
7.2.320.0060.01216.69
7.2.310.0100.00716.86
7.2.300.0030.01316.60
7.2.290.0060.01316.75
7.2.00.0060.00619.84
7.1.200.0040.01115.66
7.1.100.0130.00917.95
7.1.70.0000.00717.38
7.1.60.0090.00319.46
7.1.50.0000.02117.22
7.1.00.0100.07022.44
7.0.200.0030.00716.96
7.0.140.0070.03021.92
7.0.100.0530.07319.96
7.0.90.0500.07719.92
7.0.80.0500.07319.85
7.0.70.0430.06319.89
7.0.60.0470.07719.95
7.0.50.0470.05020.35
7.0.40.0070.04320.00
7.0.30.0070.08720.04
7.0.20.0030.07720.07
7.0.10.0130.08020.12
7.0.00.0130.07319.99
5.6.280.0100.06320.99
5.6.250.0130.08020.56
5.6.240.0000.08720.57
5.6.230.0030.08020.60
5.6.220.0170.06020.47
5.6.210.0100.07320.75
5.6.200.0130.06721.05
5.6.190.0030.08321.03
5.6.180.0100.07721.09
5.6.170.0170.07021.02
5.6.160.0030.04721.04
5.6.150.0130.04021.13
5.6.140.0170.05721.02
5.6.130.0030.08020.99
5.6.120.0030.07721.13
5.6.110.0070.05021.10
5.6.100.0100.07021.09
5.6.90.0130.07321.02
5.6.80.0100.07320.43
5.6.70.0100.07720.43
5.6.60.0100.07720.39
5.6.50.0130.06720.52
5.6.40.0070.07720.38
5.6.30.0000.08720.41
5.6.20.0200.07020.37
5.6.10.0030.08020.43
5.6.00.0100.07720.43
5.5.380.0030.07720.35
5.5.370.0130.04020.37
5.5.360.0000.08320.38
5.5.350.0100.07720.37
5.5.340.0070.08320.87
5.5.330.0000.05320.83
5.5.320.0100.08020.88
5.5.310.0200.06020.91
5.5.300.0070.07320.92
5.5.290.0000.04720.77
5.5.280.0200.03320.83
5.5.270.0070.07020.86
5.5.260.0100.08320.63
5.5.250.0200.06320.58
5.5.240.0100.07020.24
5.5.230.0070.04720.28
5.5.220.0130.04020.19
5.5.210.0030.08020.17
5.5.200.0130.07320.07
5.5.190.0030.08020.23
5.5.180.0100.08020.25
5.5.160.0130.06720.23
5.5.150.0000.09020.27
5.5.140.0070.07720.02
5.5.130.0300.05020.23
5.5.120.0170.03720.26
5.5.110.0070.07720.21
5.5.100.0270.02720.17
5.5.90.0070.07720.15
5.5.80.0030.08020.07
5.5.70.0030.07720.07
5.5.60.0100.08020.03
5.5.50.0200.07020.05
5.5.40.0030.08720.15
5.5.30.0130.07020.09
5.5.20.0100.08020.08
5.5.10.0070.05720.04
5.5.00.0030.07020.03
5.4.450.0070.08019.48
5.4.440.0030.07019.23
5.4.430.0070.07319.38
5.4.420.0100.05019.11
5.4.410.0130.07019.17
5.4.400.0100.07719.15
5.4.390.0100.05319.06
5.4.380.0030.08019.23
5.4.370.0070.06719.07
5.4.360.0100.04719.05
5.4.350.0130.05719.06
5.4.340.0000.04718.78
5.4.320.0000.05318.81
5.4.310.0130.07018.83
5.4.300.0030.08019.02
5.4.290.0130.07319.14
5.4.280.0070.08019.09
5.4.270.0030.04319.00
5.4.260.0070.04319.11
5.4.250.0100.05019.02
5.4.240.0070.07019.22
5.4.230.0130.07019.14
5.4.220.0070.08319.05
5.4.210.0070.07318.80
5.4.200.0070.05719.02
5.4.190.0130.06319.02
5.4.180.0000.07018.93
5.4.170.0030.05019.11
5.4.160.0170.06718.76
5.4.150.0030.04719.07
5.4.140.0000.07716.41
5.4.130.0070.05016.38
5.4.120.0070.06316.32
5.4.110.0030.06716.32
5.4.100.0030.07316.48
5.4.90.0070.03716.38
5.4.80.0070.07716.25
5.4.70.0030.08016.38
5.4.60.0100.03716.24
5.4.50.0100.06716.28
5.4.40.0000.07716.25
5.4.30.0030.07316.33
5.4.20.0070.07316.39
5.4.10.0130.06316.33
5.4.00.0000.05315.72
5.3.290.0030.07314.67
5.3.280.0100.07314.45
5.3.270.0030.07714.61
5.3.260.0070.03714.54
5.3.250.0170.06314.46
5.3.240.0000.04314.44
5.3.230.0000.08314.55
5.3.220.0070.07014.55
5.3.210.0070.07014.57
5.3.200.0100.07714.42
5.3.190.0030.06314.52
5.3.180.0200.06314.52
5.3.170.0070.07314.56
5.3.160.0130.05714.40
5.3.150.0070.05314.47
5.3.140.0100.07014.56
5.3.130.0100.04314.51
5.3.120.0000.04714.51
5.3.110.0070.04014.54
5.3.100.0070.03714.02
5.3.90.0100.07313.88
5.3.80.0000.05314.02
5.3.70.0130.07013.96
5.3.60.0030.07713.76
5.3.50.0030.07013.96
5.3.40.0070.04713.95
5.3.30.0070.06713.88
5.3.20.0170.05313.65
5.3.10.0000.07313.41
5.3.00.0000.08013.59
5.2.170.0070.04711.10
5.2.160.0070.05711.06
5.2.150.0070.05011.13
5.2.140.0030.03710.96
5.2.130.0030.06311.15
5.2.120.0030.06011.14
5.2.110.0070.06011.13
5.2.100.0070.06011.09
5.2.90.0070.06011.11
5.2.80.0070.06011.11
5.2.70.0030.04711.13
5.2.60.0100.06010.89
5.2.50.0030.05011.01
5.2.40.0100.05310.99
5.2.30.0030.06311.02
5.2.20.0100.05310.81
5.2.10.0070.05710.88
5.2.00.0070.05710.77
5.1.60.0030.05310.32
5.1.50.0070.05310.32
5.1.40.0030.04010.32
5.1.30.0000.03710.32
5.1.20.0100.05010.40
5.1.10.0000.03710.32
5.1.00.0030.05310.32
5.0.50.0030.02310.32
5.0.40.0000.04710.32
5.0.30.0000.06310.32
5.0.20.0000.04010.32
5.0.10.0030.03010.32
5.0.00.0030.05010.32
4.4.90.0030.03010.32
4.4.80.0100.03010.32
4.4.70.0030.03010.32
4.4.60.0000.03710.32
4.4.50.0070.02710.32
4.4.40.0030.04010.32
4.4.30.0070.02010.32
4.4.20.0000.03010.32
4.4.10.0000.02010.32
4.4.00.0000.05310.32
4.3.110.0030.02010.32
4.3.100.0030.02010.32
4.3.90.0000.02310.32
4.3.80.0000.05310.32
4.3.70.0070.03010.32
4.3.60.0030.03310.32
4.3.50.0000.03710.32
4.3.40.0070.04710.32
4.3.30.0000.04010.32
4.3.20.0000.03310.32
4.3.10.0070.03010.32
4.3.00.0000.03310.32

preferences:
49.5 ms | 400 KiB | 5 Q