3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2010-12-02'); $start_first_day = $start->modify('first day of this month'); $end = new DateTime('2012-05-06'); $end->modify('first day of next month'); $interval = DateInterval::createFromDateString('1 month'); $period = new DatePeriod($start_first_day , $interval, $end); foreach ($period as $dt) { $month_start = $dt->format("Y-m-d"); $month_end = $dt->modify('last day of this month'); $month_end = $month_end ->format("Y-m-d"); echo $month_start . " " . $month_end . 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.0070.01316.72
8.3.50.0070.01122.76
8.3.40.0110.01119.09
8.3.30.0040.01119.02
8.3.20.0090.00020.21
8.3.10.0050.00323.65
8.3.00.0000.00819.63
8.2.180.0110.01116.75
8.2.170.0060.00822.96
8.2.160.0070.00720.52
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0030.00626.16
8.2.120.0050.00320.02
8.2.110.0040.00422.21
8.2.100.0120.00018.16
8.2.90.0100.00019.30
8.2.80.0030.00517.97
8.2.70.0130.00317.25
8.2.60.0040.00418.05
8.2.50.0000.00818.07
8.2.40.0030.00618.34
8.2.30.0040.00418.20
8.2.20.0000.00818.04
8.2.10.0070.00018.19
8.2.00.0050.00317.80
8.1.280.0110.00425.92
8.1.270.0000.00924.13
8.1.260.0020.00526.35
8.1.250.0040.00428.09
8.1.240.0090.00024.09
8.1.230.0030.00719.14
8.1.220.0000.00817.79
8.1.210.0050.00318.77
8.1.200.0030.00617.48
8.1.190.0050.00317.47
8.1.180.0040.00418.10
8.1.170.0030.00618.69
8.1.160.0050.00222.13
8.1.150.0060.00318.88
8.1.140.0050.00217.57
8.1.130.0070.00017.82
8.1.120.0030.00417.68
8.1.110.0080.00017.65
8.1.100.0050.00317.63
8.1.90.0050.00217.72
8.1.80.0040.00417.72
8.1.70.0020.00517.61
8.1.60.0060.00317.82
8.1.50.0040.00417.53
8.1.40.0040.00417.72
8.1.30.0040.00417.83
8.1.20.0040.00417.76
8.1.10.0000.00717.66
8.1.00.0000.00817.66
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0040.00418.54
8.0.270.0040.00417.30
8.0.260.0050.00317.39
8.0.250.0000.00717.13
8.0.240.0030.00317.20
8.0.230.0050.00317.20
8.0.220.0000.00717.16
8.0.210.0000.00717.13
8.0.200.0030.00317.22
8.0.190.0090.00017.14
8.0.180.0000.00717.13
8.0.170.0040.00417.10
8.0.160.0040.00417.17
8.0.150.0000.00917.09
8.0.140.0000.00716.99
8.0.130.0110.00013.48
8.0.120.0070.00017.02
8.0.110.0000.00817.14
8.0.100.0060.00317.20
8.0.90.0050.00317.09
8.0.80.0060.00917.14
8.0.70.0000.00717.08
8.0.60.0070.00017.21
8.0.50.0080.00017.21
8.0.30.0060.01317.44
8.0.20.0130.01517.40
8.0.10.0080.00017.29
8.0.00.0050.01417.04
7.4.330.0000.00615.00
7.4.320.0000.00716.71
7.4.300.0000.00716.77
7.4.290.0000.00716.72
7.4.280.0000.01016.68
7.4.270.0050.00316.76
7.4.260.0050.00216.64
7.4.250.0040.00416.64
7.4.240.0050.00216.69
7.4.230.0000.00816.80
7.4.220.0160.01316.59
7.4.210.0110.00416.73
7.4.200.0000.00716.80
7.4.160.0140.00416.59
7.4.150.0180.00717.40
7.4.140.0080.01417.86
7.4.130.0130.00416.56
7.4.120.0050.01116.69
7.4.110.0120.00416.54
7.4.100.0100.00716.63
7.4.90.0000.01716.88
7.4.80.0100.01319.39
7.4.70.0110.00716.66
7.4.60.0130.00316.67
7.4.50.0030.00616.77
7.4.40.0190.00016.82
7.4.30.0030.01716.78
7.4.00.0070.01015.17
7.3.330.0050.00013.32
7.3.320.0020.00213.27
7.3.310.0030.00316.34
7.3.300.0030.00316.49
7.3.290.0060.00916.46
7.3.280.0100.00816.46
7.3.270.0130.00617.40
7.3.260.0150.00316.40
7.3.250.0080.00916.54
7.3.240.0070.01016.53
7.3.230.0150.00316.75
7.3.210.0150.00416.63
7.3.200.0090.01319.39
7.3.190.0090.00916.64
7.3.180.0110.00716.65
7.3.170.0080.00816.54
7.3.160.0090.01216.77
7.3.10.0060.01216.69
7.3.00.0080.00816.70
7.2.330.0160.00716.80
7.2.320.0090.01316.66
7.2.310.0100.00616.98
7.2.300.0120.01216.96
7.2.290.0080.01216.80
7.2.130.0080.00516.85
7.2.120.0080.00916.98
7.2.110.0010.01217.17
7.2.100.0110.00816.85
7.2.90.0070.01016.97
7.2.80.0100.00717.11
7.2.70.0140.00416.88
7.2.60.0150.00416.85
7.2.50.0120.01016.96
7.2.40.0080.01016.95
7.2.30.0090.00816.90
7.2.20.0130.00816.69
7.2.10.0120.00517.06
7.2.00.0110.00917.19
7.1.250.0070.00515.83
7.1.70.0060.00617.43
7.1.60.0100.01619.40
7.1.50.0110.01416.84
7.1.00.0000.07722.51
7.0.200.0040.00417.04
7.0.140.0030.07722.01
7.0.60.0030.07719.91
7.0.50.0000.07317.85
7.0.40.0070.09020.05
7.0.30.0500.06720.09
7.0.20.0330.04020.18
7.0.10.0200.07720.33
7.0.00.0070.06720.16
5.6.280.0130.06320.99
5.6.210.0230.04720.69
5.6.200.0170.07318.17
5.6.190.0030.04320.57
5.6.180.0270.08020.33
5.6.170.0300.05320.36
5.6.160.0130.07720.49
5.6.150.0130.07318.19
5.6.140.0070.07018.21
5.6.130.0000.06718.12
5.6.120.0070.08321.02
5.6.110.0100.07721.00
5.6.100.0170.06720.88
5.6.90.0100.08321.10
5.6.80.0030.04320.42
5.5.350.0270.07020.52
5.5.340.0130.07317.98
5.5.330.0000.04320.21
5.5.320.0230.07320.21
5.5.310.0330.08020.41
5.5.300.0070.06017.98
5.5.290.0100.03717.98
5.5.280.0030.04020.85
5.5.270.0100.06720.89
5.5.260.0100.09320.89
5.5.250.0130.07720.57
5.5.240.0230.08020.19
5.4.450.1230.03019.21
5.4.440.0230.04319.11
5.4.430.0470.04019.45
5.4.420.0470.04319.41
5.4.410.0230.04319.30
5.4.400.0400.03318.93
5.4.390.0230.04719.14
5.4.380.0270.06718.66
5.4.370.0170.06318.61
5.4.360.0230.05718.75
5.4.350.0330.05018.63
5.4.340.0430.04718.63
5.4.320.0080.03512.46
5.4.310.0070.04412.45
5.4.300.0040.03812.46
5.4.290.0140.04512.45
5.4.280.0040.03712.35
5.4.270.0040.03712.35
5.4.260.0080.03812.35
5.4.250.0110.04412.35
5.4.240.0060.05312.35
5.4.230.0090.04112.34
5.4.220.0040.05012.34
5.4.210.0090.03612.34
5.4.200.0030.04112.34
5.4.190.0050.03612.34
5.4.180.0060.03612.34
5.4.170.0030.04112.35
5.4.160.0050.03712.34
5.4.150.0050.04412.34
5.4.140.0080.04012.03
5.4.130.0060.03812.02
5.4.120.0030.03811.97
5.4.110.0070.03411.96
5.4.100.0070.03411.96
5.4.90.0080.03911.97
5.4.80.0060.04011.97
5.4.70.0040.04211.96
5.4.60.0100.03411.96
5.4.50.0020.04011.96
5.4.40.0030.03811.96
5.4.30.0040.03711.95
5.4.20.0050.03611.95
5.4.10.0060.03311.95
5.4.00.0080.03511.44
5.3.290.0090.04512.80
5.3.280.0050.03912.71
5.3.270.0050.03912.72
5.3.260.0030.04712.72
5.3.250.0050.03712.71
5.3.240.0090.03412.72
5.3.230.0040.03812.71
5.3.220.0070.03812.68
5.3.210.0050.04512.68
5.3.200.0080.05112.68
5.3.190.0090.03612.68
5.3.180.0060.04612.67
5.3.170.0050.04912.67
5.3.160.0040.03912.67
5.3.150.0030.04212.67
5.3.140.0070.04512.66
5.3.130.0050.04412.66
5.3.120.0070.04812.66
5.3.110.0050.04612.66
5.3.100.0070.03812.12
5.3.90.0080.03412.08
5.3.80.0050.04212.08
5.3.70.0060.03712.08
5.3.60.0120.04512.07
5.3.50.0080.04612.00
5.3.40.0050.05012.00
5.3.30.0070.04011.95
5.3.20.0050.04911.73
5.3.10.0080.04011.70
5.3.00.0060.04111.68
5.2.170.0040.0369.18
5.2.160.0090.0249.19
5.2.150.0040.0319.19
5.2.140.0020.0329.18
5.2.130.0030.0299.14
5.2.120.0050.0279.14
5.2.110.0080.0359.16
5.2.100.0040.0289.14
5.2.90.0050.0289.14
5.2.80.0060.0369.14
5.2.70.0020.0319.14
5.2.60.0100.0329.10
5.2.50.0040.0309.06
5.2.40.0040.0319.04
5.2.30.0060.0359.02
5.2.20.0100.0359.01
5.2.10.0040.0328.92
5.2.00.0030.0338.79
5.1.60.0040.0248.07
5.1.50.0040.0348.06
5.1.40.0010.0288.05
5.1.30.0050.0288.39
5.1.20.0080.0318.41
5.1.10.0030.0278.14
5.1.00.0010.0288.14
5.0.50.0020.0286.64
5.0.40.0040.0246.49
5.0.30.0030.0316.30
5.0.20.0050.0266.28
5.0.10.0050.0176.25
5.0.00.0040.0416.25
4.4.90.0040.0214.78
4.4.80.0050.0224.75
4.4.70.0040.0164.76
4.4.60.0030.0154.76
4.4.50.0020.0164.77
4.4.40.0040.0304.71
4.4.30.0050.0174.76
4.4.20.0040.0184.84
4.4.10.0030.0154.85
4.4.00.0020.0344.76
4.3.110.0010.0174.67
4.3.100.0030.0154.67
4.3.90.0010.0164.63
4.3.80.0040.0324.59
4.3.70.0020.0154.63
4.3.60.0020.0154.63
4.3.50.0030.0154.63
4.3.40.0010.0254.54
4.3.30.0030.0153.30
4.3.20.0020.0163.27
4.3.10.0030.0163.23
4.3.00.0030.02016.03

preferences:
40.91 ms | 401 KiB | 5 Q