3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month_start = new DateTime("first day of this month"); $month_end = new DateTime("last day of this month"); // find the monday on/before the start of the month $start_date = clone $month_start; $start_date->modify((1 - $start_date->format('N')) . ' days'); while ($start_date <= $month_end) { echo max($month_start, $start_date)->format('Y-m-d') . ' to ' . min($start_date->modify('+6 days'), $month_end)->format('Y-m-d') . "\n"; $start_date->modify('+1 day'); }

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.0030.01716.88
8.3.60.0210.00016.63
8.3.50.0090.00618.14
8.3.40.0100.00320.40
8.3.30.0140.00018.83
8.3.20.0040.00421.78
8.3.10.0080.00020.38
8.3.00.0030.00620.57
8.2.190.0120.00316.61
8.2.180.0150.00325.92
8.2.170.0070.00719.04
8.2.160.0070.00721.22
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0040.00426.16
8.2.110.0030.00621.00
8.2.100.0050.00518.03
8.2.90.0040.00417.88
8.2.80.0000.00818.98
8.2.70.0080.00548.74
8.2.60.0090.00448.84
8.2.50.0110.00248.71
8.2.40.0070.00649.44
8.2.30.0080.00349.35
8.2.20.0060.00648.66
8.2.10.0080.00349.33
8.2.00.0050.00749.27
8.1.280.0030.01225.92
8.1.270.0040.00422.18
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00722.79
8.1.230.0120.00020.85
8.1.220.0050.00317.74
8.1.210.0090.00018.77
8.1.200.0100.00648.40
8.1.190.0120.00148.40
8.1.180.0070.00549.21
8.1.170.0100.00249.09
8.1.160.0060.00649.24
8.1.150.0090.00349.06
8.1.140.0060.00649.12
8.1.130.0080.00448.52
8.1.120.0070.00648.54
8.1.110.0110.00148.48
8.1.100.0010.01148.50
8.1.90.0050.00748.46
8.1.80.0100.00348.50
8.1.70.0080.00448.51
8.1.60.0070.00748.54
8.1.50.0080.00648.53
8.1.40.0040.00848.52
8.1.30.0090.00448.57
8.1.20.0100.00548.52
8.1.10.0080.00548.55
8.1.00.0040.00948.47
8.0.300.0000.00818.77
8.0.290.0060.00648.16
8.0.280.0060.00548.93
8.0.270.0060.00648.85
8.0.260.0070.00548.23
8.0.250.0090.00348.28
8.0.240.0060.00648.24
8.0.230.0060.00648.32
8.0.220.0100.00248.21
8.0.210.0090.00348.21
8.0.200.0120.00348.26
8.0.190.0070.00648.30
8.0.180.0090.00448.27
8.0.170.0100.00248.28
8.0.160.0090.00348.27
8.0.150.0110.00148.24
8.0.140.0060.00648.25
8.0.130.0060.00646.44
8.0.120.0050.00748.24
8.0.110.0090.00348.32
8.0.100.0100.00248.25
8.0.90.0030.00948.21
8.0.80.0060.00948.29
8.0.70.0050.00948.20
8.0.60.0110.00148.21
8.0.50.0080.00448.33
8.0.30.0100.00748.25
8.0.20.0140.00638.01
8.0.10.0060.00648.35
8.0.00.0060.01348.17
7.4.330.0080.00147.44
7.4.320.0040.00748.01
7.4.300.0120.00048.07
7.4.290.0090.00448.04
7.4.280.0040.00947.99
7.4.270.0050.00748.01
7.4.260.0080.00346.38
7.4.250.0100.00247.99
7.4.240.0010.00937.65
7.4.230.0080.00447.92
7.4.220.0070.00337.64
7.4.210.0120.00648.12
7.4.200.0080.00448.10
7.4.190.0090.00679.33
7.4.180.0100.00579.33
7.4.160.0120.00379.33
7.4.150.0130.00279.33
7.4.140.0130.00379.33
7.4.130.0130.00437.56
7.4.120.0110.00748.08
7.4.110.0090.00848.11
7.4.100.0050.01048.01
7.4.90.0100.00648.02
7.4.80.0110.00649.36
7.4.70.0120.00347.92
7.4.60.0080.00948.03
7.4.50.0110.00448.04
7.4.40.0120.00447.91
7.4.30.0100.00747.92
7.4.20.0090.00747.97
7.4.10.0110.00548.03
7.4.00.0090.00648.04
7.3.330.0010.01047.89
7.3.320.0090.00146.34
7.3.310.0080.00447.81
7.3.300.0080.00347.81
7.3.290.0060.01132.18
7.3.280.0150.00079.33
7.3.270.0160.00079.33
7.3.260.0090.00848.02
7.3.250.0080.00879.33
7.3.240.0080.01029.21
7.3.230.0160.00547.99
7.3.220.0130.00379.33
7.3.210.0150.00347.84
7.3.200.0080.00747.97
7.3.190.0130.00647.92
7.3.180.0100.00747.96
7.3.170.0140.00247.99
7.3.160.0130.00347.93
7.3.150.0070.00848.02
7.3.140.0130.00248.00
7.3.130.0100.00647.91
7.3.120.0130.00348.00
7.3.110.0090.00547.93
7.3.100.0110.00347.89
7.3.90.0070.00748.00
7.3.80.0080.00848.02
7.3.70.0040.01247.94
7.3.60.0120.00547.99
7.3.50.0100.00547.99
7.3.40.0090.00747.92
7.3.30.0080.00747.86
7.3.20.0120.00548.82
7.3.10.0120.00448.86
7.3.00.0090.00848.93
7.2.340.0110.00479.33
7.2.330.0140.00548.06
7.2.320.0130.00748.12
7.2.310.0110.00548.13
7.2.300.0110.00548.02
7.2.290.0100.00548.04
7.2.280.0110.00447.96
7.2.270.0090.00747.98
7.2.260.0100.00548.00
7.2.250.0090.00648.01
7.2.240.0070.00848.09
7.2.230.0040.01248.15
7.2.220.0140.00348.16
7.2.210.0070.00948.11
7.2.200.0110.00747.98
7.2.190.0080.00848.08
7.2.180.0100.00648.10
7.2.170.0090.00648.10
7.2.160.0130.00348.02
7.2.150.0080.00949.00
7.2.140.0090.00749.02
7.2.130.0120.00548.99
7.2.120.0110.00648.92
7.2.110.0120.00648.92
7.2.100.0150.00148.91
7.2.90.0100.00849.07
7.2.80.0120.00648.97
7.2.70.0110.00748.98
7.2.60.0080.00948.96
7.2.50.0080.01048.87
7.2.40.0100.00749.00
7.2.30.0050.01248.92
7.2.20.0100.00848.96
7.2.10.0110.00648.96
7.2.00.0120.00649.00

preferences:
40.82 ms | 401 KiB | 5 Q