3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2010-12-02'); $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, $interval, $end); echo $period; foreach ($period as $dt) { echo $dt->format("Y-m") . 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.01016.88
8.3.50.0150.00316.40
8.3.40.0090.00919.08
8.3.30.0060.00918.78
8.3.20.0030.00620.25
8.3.10.0060.00321.90
8.3.00.0080.00023.51
8.2.180.0070.01018.36
8.2.170.0060.00922.96
8.2.160.0030.01020.58
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0050.00219.83
8.2.120.0080.00026.35
8.2.110.0050.00522.03
8.2.100.0060.00617.90
8.2.90.0050.00318.09
8.2.80.0080.00017.97
8.2.70.0040.00417.75
8.2.60.0040.00418.15
8.2.50.0050.00518.07
8.2.40.0040.00422.43
8.2.30.0040.00419.45
8.2.20.0000.00817.93
8.2.10.0080.00019.90
8.2.00.0000.00718.20
8.1.280.0120.00325.92
8.1.270.0030.00523.99
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00622.63
8.1.230.0060.00620.97
8.1.220.0030.00617.74
8.1.210.0000.00818.95
8.1.200.0040.00417.60
8.1.190.0040.00417.48
8.1.180.0030.00518.10
8.1.170.0030.00618.63
8.1.160.0070.00020.84
8.1.150.0000.00719.01
8.1.140.0040.00419.49
8.1.130.0040.00417.58
8.1.120.0000.00717.63
8.1.110.0070.00017.68
8.1.100.0080.00017.66
8.1.90.0040.00417.60
8.1.80.0000.00917.61
8.1.70.0000.00717.66
8.1.60.0040.00417.77
8.1.50.0000.00917.72
8.1.40.0040.00417.61
8.1.30.0030.00517.79
8.1.20.0040.00417.84
8.1.10.0030.00617.78
8.1.00.0000.00917.77
8.0.300.0040.00419.98
8.0.290.0030.00517.00
8.0.280.0030.00318.46
8.0.270.0030.00317.31
8.0.260.0040.00420.28
8.0.250.0070.00017.31
8.0.240.0000.00617.32
8.0.230.0030.00317.28
8.0.220.0040.00417.15
8.0.210.0050.00317.11
8.0.200.0000.00617.21
8.0.190.0080.00017.14
8.0.180.0000.00817.18
8.0.170.0040.00417.16
8.0.160.0080.00017.18
8.0.150.0040.00417.11
8.0.140.0050.00317.02
8.0.130.0030.00313.48
8.0.120.0040.00417.13
8.0.110.0060.00317.06
8.0.100.0000.00717.01
8.0.90.0040.00417.15
8.0.80.0090.00917.21
8.0.70.0070.00016.98
8.0.60.0040.00417.18
8.0.50.0030.00617.19
8.0.30.0080.01017.36
8.0.20.0090.00917.45
8.0.10.0000.00817.17
8.0.00.0140.00616.96
7.4.330.0000.00616.71
7.4.320.0000.00616.63
7.4.300.0030.00316.70
7.4.290.0000.00716.80
7.4.280.0060.00316.76
7.4.270.0030.00316.71
7.4.260.0030.00716.64
7.4.250.0000.00716.66
7.4.240.0030.00316.72
7.4.230.0000.00816.45
7.4.220.0120.00716.78
7.4.210.0060.00916.73
7.4.200.0070.00016.87
7.4.160.0130.00416.77
7.4.150.0130.00417.40
7.4.140.0110.01017.86
7.4.130.0110.00616.73
7.4.120.0070.01016.63
7.4.110.0090.00916.72
7.4.100.0100.01416.84
7.4.90.0140.00316.90
7.4.80.0150.00319.39
7.4.70.0060.01416.64
7.4.60.0120.00616.60
7.4.50.0060.00916.60
7.4.40.0090.00916.45
7.4.30.0100.00616.50
7.4.00.0060.01015.18
7.3.330.0050.00013.20
7.3.320.0030.00313.30
7.3.310.0000.00716.42
7.3.300.0000.00716.45
7.3.290.0100.00616.48
7.3.280.0110.01216.50
7.3.270.0150.00317.40
7.3.260.0100.00716.46
7.3.250.0060.01316.67
7.3.240.0080.01316.61
7.3.230.0150.00316.54
7.3.210.0120.00816.57
7.3.200.0040.01519.39
7.3.190.0150.00516.76
7.3.180.0090.00916.67
7.3.170.0090.01216.54
7.3.160.0000.02016.74
7.2.330.0080.01016.75
7.2.320.0000.01716.78
7.2.310.0060.01216.79
7.2.300.0110.00716.53
7.2.290.0050.01116.94
7.2.60.0090.00616.84
7.2.00.0040.00819.56
7.1.200.0100.00015.61
7.1.100.0000.01418.18
7.1.70.0080.00017.11
7.1.60.0110.01119.20
7.1.50.0070.01417.15
7.1.00.0070.07322.28
7.0.200.0100.00016.98
7.0.60.0230.06021.71
7.0.50.0100.07717.82
7.0.40.0170.05720.27
7.0.30.0270.07720.18
7.0.20.0270.04720.00
7.0.10.0100.04019.99
7.0.00.0100.07020.17
5.6.280.0030.03321.13
5.6.210.0170.06720.76
5.6.200.0100.05018.23
5.6.190.0130.05320.63
5.6.180.0400.07020.58
5.6.170.0200.05720.51
5.6.160.0170.03720.44
5.6.150.0100.06318.19
5.6.140.0070.04718.14
5.6.130.0130.04718.18
5.6.120.0130.07721.01
5.6.110.0130.07721.05
5.6.100.0070.08720.89
5.6.90.0100.07721.12
5.6.80.0030.08320.53
5.5.350.0000.08720.38
5.5.340.0130.08017.97
5.5.330.0000.05720.29
5.5.320.0270.07720.21
5.5.310.0270.03720.29
5.5.300.0230.03317.92
5.5.290.0070.05018.01
5.5.280.0030.05720.88
5.5.270.0100.08020.86
5.5.260.0130.05720.79
5.5.250.0070.08320.70
5.5.240.0100.05320.25

preferences:
44.77 ms | 400 KiB | 5 Q