3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = (new DateTime('2010-12-02'))->modify('first day of this month'); $end = (new DateTime('2012-05-06'))->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") . "<br>\n"; }

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.0180.00016.75
8.3.50.0100.01222.07
8.3.40.0140.00719.04
8.3.30.0160.00618.95
8.3.20.0000.00819.54
8.3.10.0050.00321.94
8.3.00.0040.00420.80
8.2.180.0110.00716.63
8.2.170.0090.00622.96
8.2.160.0150.00020.62
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00018.05
8.2.120.0030.00526.35
8.2.110.0110.00321.20
8.2.100.0110.00620.40
8.2.90.0170.00419.64
8.2.80.0160.00518.53
8.2.70.0150.00718.64
8.2.60.0090.00918.62
8.2.50.0110.00518.94
8.2.40.0130.00319.21
8.2.30.0050.00919.20
8.2.20.0090.00118.47
8.2.10.0070.00418.40
8.2.00.0100.00219.09
8.1.280.0090.00625.92
8.1.270.0030.00623.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0170.00219.09
8.1.230.0160.00618.86
8.1.220.0150.00518.37
8.1.210.0130.00319.44
8.1.200.0170.00318.01
8.1.190.0150.00617.98
8.1.180.0040.00918.40
8.1.170.0050.00618.30
8.1.160.0100.00019.83
8.1.150.0080.00220.80
8.1.140.0080.00318.75
8.1.130.0070.00617.99
8.1.120.0060.00518.11
8.1.110.0100.00418.20
8.1.100.0130.00418.27
8.1.90.0080.00718.11
8.1.80.0080.00818.26
8.1.70.0090.00618.05
8.1.60.0130.00618.09
8.1.50.0120.00717.77
8.1.40.0140.00417.83
8.1.30.0130.00517.88
8.1.20.0150.00317.87
8.1.10.0150.00417.84
8.1.00.0130.00617.81
8.0.300.0120.00818.98
8.0.290.0110.00617.63
8.0.280.0080.00518.30
8.0.270.0190.00217.58
8.0.260.0060.00617.59
8.0.250.0100.00217.47
8.0.240.0060.00717.35
8.0.230.0090.00417.35
8.0.220.0100.00317.29
8.0.210.0110.00417.25
8.0.200.0090.00517.48
8.0.190.0080.00617.32
8.0.180.0100.00617.16
8.0.170.0110.00417.21
8.0.160.0120.00517.17
8.0.150.0120.00617.14
8.0.140.0110.00517.13
8.0.130.0130.00416.88
8.0.120.0120.00516.90
8.0.110.0100.00616.87
8.0.100.0110.00616.85
8.0.90.0110.00716.89
8.0.80.0150.00316.88
8.0.70.0130.00416.88
8.0.60.0120.00516.89
8.0.50.0120.00616.87
8.0.30.0150.00416.97
8.0.20.0140.00617.08
8.0.10.0130.00617.09
8.0.00.0100.00717.36
7.4.330.0100.00315.93
7.4.320.0100.00416.85
7.4.300.0100.00417.01
7.4.290.0100.00316.98
7.4.280.0140.00316.74
7.4.270.0140.00517.00
7.4.260.0120.00616.77
7.4.250.0120.00516.49
7.4.240.0130.00416.65
7.4.230.0140.00316.54
7.4.220.0100.00716.68
7.4.210.0100.00616.58
7.4.200.0110.00416.66
7.4.190.0120.00516.57
7.4.180.0100.00616.54
7.4.160.0120.00616.72
7.4.150.0110.00616.69
7.4.140.0090.00816.73
7.4.130.0100.00816.52
7.4.120.0110.00616.51
7.4.110.0120.00616.47
7.4.100.0110.00716.51
7.4.90.0120.00716.48
7.4.80.0120.00716.63
7.4.70.0140.00616.47
7.4.60.0140.00616.50
7.4.50.0110.00716.44
7.4.40.0130.00716.46
7.4.30.0130.00716.46
7.4.20.0130.00716.45
7.4.10.0110.00816.45
7.4.00.0120.00616.49
7.3.330.0100.00516.21
7.3.320.0110.00416.02
7.3.310.0120.00416.24
7.3.300.0100.00616.24
7.3.290.0130.00316.26
7.3.280.0100.00716.32
7.3.270.0130.00516.27
7.3.260.0090.00916.36
7.3.250.0110.00716.40
7.3.240.0130.00716.37
7.3.230.0140.00616.39
7.3.220.0120.00616.39
7.3.210.0120.00716.38
7.3.200.0120.00716.42
7.3.190.0130.00616.37
7.3.180.0120.00816.38
7.3.170.0130.00616.35
7.3.160.0110.00816.39
7.3.150.0120.00816.43
7.3.140.0130.00716.45
7.3.130.0120.00716.37
7.3.120.0120.00716.33
7.3.110.0120.00816.31
7.3.100.0190.00716.21
7.3.90.0140.00616.36
7.3.80.0160.00716.19
7.3.70.0160.00616.20
7.3.60.0110.00716.26
7.3.50.0120.00816.18
7.3.40.0180.00716.09
7.3.30.0150.00716.01
7.3.20.0240.00716.84
7.3.10.0510.00616.76
7.3.00.0460.00816.74
7.2.340.0140.00716.70
7.2.330.0170.00716.63
7.2.320.0170.00616.66
7.2.310.0180.00616.62
7.2.300.0150.00716.65
7.2.290.0170.00816.65
7.2.280.0160.00816.69
7.2.270.0170.00616.65
7.2.260.0150.00716.63
7.2.250.0180.00616.64
7.2.240.0160.00816.58
7.2.230.0150.00816.59
7.2.220.0190.00716.54
7.2.210.0160.00816.43
7.2.200.0180.00716.50
7.2.190.0170.00616.49
7.2.180.0140.00816.44
7.2.170.0180.00716.40
7.2.160.0130.00716.33
7.2.150.0190.00817.20
7.2.140.0210.00717.18
7.2.130.0490.00817.10
7.2.120.0380.00717.05
7.2.110.0330.00717.07
7.2.100.0270.00617.12
7.2.90.0270.00717.11
7.2.80.0270.00917.10
7.2.70.0280.00817.10
7.2.60.0260.00717.06
7.2.50.0310.00817.05
7.2.40.0380.00817.08
7.2.30.0350.00717.18
7.2.20.0300.00817.24
7.2.10.0330.00717.25
7.2.00.0280.00817.22
7.1.330.0170.00616.62
7.1.320.0200.00616.42
7.1.310.0180.00716.29
7.1.300.0180.00716.29
7.1.290.0160.00616.29
7.1.280.0160.00716.20
7.1.270.0170.00616.04
7.1.260.0440.00716.05
7.1.250.0530.00615.97
7.1.240.0470.00715.91
7.1.230.0330.00715.92
7.1.220.0280.00615.97
7.1.210.0300.00715.93
7.1.200.0310.00715.97
7.1.190.0250.00815.92
7.1.180.0290.00615.91
7.1.170.0270.00815.89
7.1.160.0330.00815.97
7.1.150.0340.00816.04
7.1.140.0370.00716.12
7.1.130.0350.00716.13
7.1.120.0280.00716.10
7.1.110.0340.00816.10
7.1.100.0310.00816.10
7.1.90.0260.00716.07
7.1.80.0270.00616.14
7.1.70.0250.00715.94
7.1.60.0240.00817.43
7.1.50.0240.00817.44
7.1.40.0230.00817.44
7.1.30.0230.00817.45
7.1.20.0250.00717.43
7.1.10.0220.00715.99
7.1.00.0230.00815.95
7.0.330.0510.00715.54
7.0.320.0340.00715.53
7.0.310.0350.00715.55
7.0.300.0270.00715.48
7.0.290.0310.00815.65
7.0.280.0300.00815.54
7.0.270.0300.00615.74
7.0.260.0280.00715.76
7.0.250.0350.00715.81
7.0.240.0300.00815.82
7.0.230.0230.00815.80
7.0.220.0230.00815.77
7.0.210.0260.00715.67
7.0.200.0260.00715.70
7.0.190.0240.00715.68
7.0.180.0210.00715.66
7.0.170.0220.00715.71
7.0.160.0220.00815.65
7.0.150.0210.00815.66
7.0.140.0240.00715.67
7.0.130.0210.00815.74
7.0.120.0230.00715.69
7.0.110.0240.00715.67
7.0.100.0220.00815.66
7.0.90.0230.00615.62
7.0.80.0240.00715.61
7.0.70.0230.00715.61
7.0.60.0250.00715.64
7.0.50.0260.00715.64
7.0.40.0270.00815.68
7.0.30.0230.00615.66
7.0.20.0220.00715.68
7.0.10.0220.00715.69
7.0.00.0270.00715.63
5.6.400.0150.00815.51
5.6.390.0160.00915.53
5.6.380.0160.00915.45
5.6.370.0140.00715.46
5.6.360.0150.00715.42
5.6.350.0170.00815.42
5.6.340.0150.00815.44
5.6.330.0150.00915.44
5.6.320.0140.01015.43
5.6.310.0150.00715.50
5.6.300.0150.01215.86
5.6.290.0160.01215.93
5.6.280.0140.01315.91
5.6.270.0130.01415.95
5.6.260.0160.01415.95
5.6.250.0140.01315.90
5.6.240.0160.01215.90
5.6.230.0140.01315.92
5.6.220.0150.01215.90
5.6.210.0150.01315.92
5.6.200.0140.01315.93
5.6.190.0160.01315.95
5.6.180.0140.01415.89
5.6.170.0170.01315.91
5.6.160.0140.01215.95
5.6.150.0140.01415.99
5.6.140.0160.01315.96
5.6.130.0150.01315.93
5.6.120.0130.01315.95
5.6.110.0170.01315.90
5.6.100.0130.01315.90
5.6.90.0140.01215.90
5.6.80.0130.01215.79
5.6.70.0140.01315.83
5.6.60.0130.01215.86
5.6.50.0130.01215.80
5.6.40.0150.01215.84
5.6.30.0140.01115.81
5.6.20.0150.01115.81
5.6.10.0150.01315.80
5.6.00.0150.01115.77
5.5.380.0170.01215.55
5.5.370.0150.01215.50
5.5.360.0150.01215.43
5.5.350.0140.01315.42
5.5.340.0150.01215.48
5.5.330.0160.01215.45
5.5.320.0140.01315.45
5.5.310.0160.01315.48
5.5.300.0140.01315.43
5.5.290.0150.01115.46
5.5.280.0150.01215.44
5.5.270.0150.01215.41
5.5.260.0140.01315.44
5.5.250.0150.01315.44
5.5.240.0170.01215.37
5.5.230.0160.01215.41
5.5.220.0140.01215.41
5.5.210.0150.01315.38
5.5.200.0130.01215.30
5.5.190.0130.01315.37
5.5.180.0160.01115.38
5.5.170.0170.00715.17
5.5.160.0150.01215.37
5.5.150.0140.01115.33
5.5.140.0140.01115.31
5.5.130.0160.01215.32
5.5.120.0140.01315.31
5.5.110.0140.01315.33
5.5.100.0140.01315.36
5.5.90.0130.01315.33
5.5.80.0140.01215.36
5.5.70.0140.01215.41
5.5.60.0140.01215.33
5.5.50.0120.01315.32
5.5.40.0140.01115.31
5.5.30.0140.01215.38
5.5.20.0150.01215.38
5.5.10.0140.01215.38
5.5.00.0140.01215.27

preferences:
52.95 ms | 401 KiB | 5 Q