3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2011-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); 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.0040.01116.87
8.3.50.0100.00521.31
8.3.40.0160.00619.02
8.3.30.0120.00318.75
8.3.20.0060.00320.16
8.3.10.0040.00423.48
8.3.00.0080.00020.94
8.2.180.0040.01118.66
8.2.170.0070.00722.96
8.2.160.0100.00320.45
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0060.00319.26
8.2.120.0050.00326.35
8.2.110.0070.00422.20
8.2.100.0080.00418.09
8.2.90.0060.00319.28
8.2.80.0030.00618.00
8.2.70.0040.00417.88
8.2.60.0040.00418.18
8.2.50.0040.00418.07
8.2.40.0060.00322.30
8.2.30.0040.00420.75
8.2.20.0000.00818.02
8.2.10.0080.00018.18
8.2.00.0050.00218.27
8.1.280.0040.01125.92
8.1.270.0090.00020.14
8.1.260.0030.00528.09
8.1.250.0050.00228.09
8.1.240.0060.00319.53
8.1.230.0040.00719.12
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.47
8.1.190.0030.00617.35
8.1.180.0090.00018.10
8.1.170.0040.00418.71
8.1.160.0000.00720.91
8.1.150.0000.00719.03
8.1.140.0050.00319.77
8.1.130.0040.00417.85
8.1.120.0000.00717.75
8.1.110.0050.00317.78
8.1.100.0000.00817.63
8.1.90.0000.00717.70
8.1.80.0040.00417.71
8.1.70.0000.00717.76
8.1.60.0040.00417.84
8.1.50.0040.00417.62
8.1.40.0080.00317.66
8.1.30.0060.00517.73
8.1.20.0080.00317.85
8.1.10.0110.00217.75
8.1.00.0120.00417.71
8.0.300.0030.00618.77
8.0.290.0100.00016.75
8.0.280.0070.00018.51
8.0.270.0050.00217.41
8.0.260.0000.00617.40
8.0.250.0070.00017.23
8.0.240.0030.00317.22
8.0.230.0030.00317.20
8.0.220.0000.00717.18
8.0.210.0040.00417.13
8.0.200.0030.00317.22
8.0.190.0000.00717.18
8.0.180.0080.00017.09
8.0.170.0070.00617.19
8.0.160.0060.00517.12
8.0.150.0070.00417.05
8.0.140.0060.00617.03
8.0.130.0060.00515.29
8.0.120.0100.00317.15
8.0.110.0070.00517.09
8.0.100.0040.00617.04
8.0.90.0100.00117.12
8.0.80.0120.00317.14
8.0.70.0080.00317.08
8.0.60.0080.00417.02
8.0.50.0080.00317.04
8.0.30.0080.00917.15
8.0.20.0120.00817.34
8.0.10.0100.00917.24
8.0.00.0100.00817.11
7.4.330.0000.00516.77
7.4.320.0040.00416.63
7.4.300.0030.00316.75
7.4.290.0040.00716.84
7.4.280.0090.00216.66
7.4.270.0100.00516.76
7.4.260.0100.00516.77
7.4.250.0110.00416.72
7.4.240.0080.00416.81
7.4.230.0120.00316.61
7.4.220.0100.00716.66
7.4.210.0100.00416.69
7.4.200.0050.00516.83
7.4.190.0120.00816.60
7.4.180.0090.00916.84
7.4.160.0080.00816.73
7.4.150.0090.00816.92
7.4.140.0140.00317.24
7.4.130.0080.00816.69
7.4.120.0090.00716.67
7.4.110.0090.01016.55
7.4.100.0140.00416.69
7.4.90.0110.00716.70
7.4.80.0110.01017.54
7.4.70.0130.00716.78
7.4.60.0120.00816.61
7.4.50.0130.00516.53
7.4.40.0110.00716.69
7.4.30.0160.00416.61
7.4.20.0100.00816.70
7.4.10.0060.01216.59
7.4.00.0070.01016.37
7.3.330.0070.00714.85
7.3.320.0130.00314.88
7.3.310.0100.00416.50
7.3.300.0070.00716.46
7.3.290.0070.01016.40
7.3.280.0100.00616.38
7.3.270.0080.01016.76
7.3.260.0090.00716.46
7.3.250.0100.00616.60
7.3.240.0120.00516.59
7.3.230.0130.00616.51
7.3.220.0140.00316.38
7.3.210.0160.00416.54
7.3.200.0080.01317.36
7.3.190.0120.00616.58
7.3.180.0110.00916.49
7.3.170.0080.00916.46
7.3.160.0100.00916.59
7.3.150.0120.00716.58
7.3.140.0100.00716.53
7.3.130.0100.00816.58
7.3.120.0090.00916.60
7.3.110.0090.01016.55
7.3.100.0110.00816.54
7.3.90.0090.01016.63
7.3.80.0090.01116.33
7.3.70.0070.01016.25
7.3.60.0110.00716.28
7.3.50.0100.01016.27
7.3.40.0100.00616.13
7.3.30.0080.01216.15
7.3.20.0130.00816.93
7.3.10.0110.00716.83
7.3.00.0120.00716.88
7.2.340.0160.00916.78
7.2.330.0150.00716.78
7.2.320.0180.00916.74
7.2.310.0160.00616.78
7.2.300.0140.00916.80
7.2.290.0120.00916.76
7.2.280.0110.01116.84
7.2.270.0120.01016.85
7.2.260.0130.00916.76
7.2.250.0120.00916.76
7.2.240.0110.01116.74
7.2.230.0140.00916.77
7.2.220.0120.01116.74
7.2.210.0150.00516.43
7.2.200.0120.00916.54
7.2.190.0140.00716.55
7.2.180.0130.00616.54
7.2.170.0150.00616.28
7.2.160.0130.00716.35
7.2.150.0130.00717.13
7.2.140.0110.01017.18
7.2.130.0130.00717.15
7.2.120.0150.00917.12
7.2.110.0130.00716.90
7.2.100.0140.00716.88
7.2.90.0150.00716.87
7.2.80.0140.00816.79
7.2.70.0180.00916.75
7.2.60.0110.01116.77
7.2.50.0140.00916.63
7.2.40.0200.00916.98
7.2.30.0170.00916.92
7.2.20.0200.00816.92
7.2.10.0190.01016.91
7.2.00.0200.00917.22
7.1.330.0160.01016.13
7.1.320.0180.00816.12
7.1.310.0180.00816.11
7.1.300.0170.00916.08
7.1.290.0190.00816.08
7.1.280.0110.01115.79
7.1.270.0180.00815.73
7.1.260.0160.00615.99
7.1.250.0150.00515.95
7.1.240.0150.00715.93
7.1.230.0160.00815.81
7.1.220.0150.00915.74
7.1.210.0170.00915.71
7.1.200.0160.00615.75
7.1.190.0220.00715.81
7.1.180.0150.00815.68
7.1.170.0150.01015.53
7.1.160.0230.00915.70
7.1.150.0240.00815.67
7.1.140.0210.00915.76
7.1.130.0230.00815.73
7.1.120.0200.00916.00
7.1.110.0200.00715.97
7.1.100.0200.00615.97
7.1.90.0290.00915.94
7.1.80.0200.00915.94
7.1.70.0250.00815.72
7.1.60.0300.00922.29
7.1.50.0320.00922.23
7.1.40.0220.00922.13
7.1.30.0240.00822.15
7.1.20.0260.00922.13
7.1.10.0200.01015.61
7.1.00.0190.00915.60
7.0.330.0130.00815.68
7.0.320.0180.00715.61
7.0.310.0190.00515.35
7.0.300.0190.00915.16
7.0.290.0300.00915.31
7.0.280.0150.00715.39
7.0.270.0250.00715.33
7.0.260.0240.00815.63
7.0.250.0280.01115.60
7.0.240.0200.00815.63
7.0.230.0250.00715.55
7.0.220.0210.00915.50
7.0.210.0220.01015.40
7.0.200.0220.00715.36
7.0.190.0260.00615.32
7.0.180.0190.00915.23
7.0.170.0190.00815.27
7.0.160.0210.00615.27
7.0.150.0220.00715.24
7.0.140.0240.00915.24
7.0.130.0200.00915.26
7.0.120.0200.00915.27
7.0.110.0210.00815.24
7.0.100.0230.00815.31
7.0.90.0220.00715.33
7.0.80.0230.00815.24
7.0.70.0270.00915.27
7.0.60.0200.00915.28
7.0.50.0400.00615.24
7.0.40.0180.00915.30
7.0.30.0180.00815.37
7.0.20.0180.00915.29
7.0.10.0210.00815.29
7.0.00.0170.00915.29
5.6.400.0160.01015.52
5.6.390.0130.01015.53
5.6.380.0130.00915.35
5.6.370.0120.01215.36
5.6.360.0190.00715.40
5.6.350.0170.00915.47
5.6.340.0170.00815.31
5.6.330.0130.01015.45
5.6.320.0170.00915.42
5.6.310.0130.01215.36
5.6.300.0140.01816.28
5.6.290.0150.01816.29
5.6.280.0140.02016.37
5.6.270.0160.01916.26
5.6.260.0140.02016.35
5.6.250.0160.01816.37
5.6.240.0100.02316.32
5.6.230.0140.01916.27
5.6.220.0140.01916.30
5.6.210.0140.02016.31
5.6.200.0150.01716.33
5.6.190.0130.02216.29
5.6.180.0130.02016.26
5.6.170.0150.01816.29
5.6.160.0140.01816.29
5.6.150.0150.01916.31
5.6.140.0160.01716.30
5.6.130.0130.02016.25
5.6.120.0170.01916.28
5.6.110.0140.02016.24
5.6.100.0170.01716.30
5.6.90.0150.02016.26
5.6.80.0130.01916.08
5.6.70.0150.01816.13
5.6.60.0120.02216.16
5.6.50.0130.01816.10
5.6.40.0140.01716.06
5.6.30.0130.01916.08
5.6.20.0130.01916.09
5.6.10.0140.01816.05
5.6.00.0110.02016.07
5.5.380.0130.01915.12
5.5.370.0150.01715.11
5.5.360.0140.01814.99
5.5.350.0120.01815.10
5.5.340.0140.01715.14
5.5.330.0130.01815.13
5.5.320.0130.01915.17
5.5.310.0150.01715.12
5.5.300.0130.01715.14
5.5.290.0150.02015.11
5.5.280.0140.01715.14
5.5.270.0150.01815.13
5.5.260.0130.01915.20
5.5.250.0180.01515.13
5.5.240.0120.01814.97
5.5.230.0130.01715.05
5.5.220.0140.01714.95
5.5.210.0140.01714.98
5.5.200.0180.01414.98
5.5.190.0150.01714.91
5.5.180.0120.01814.98
5.5.170.0130.00815.25
5.5.160.0130.01814.88
5.5.150.0140.01714.91
5.5.140.0140.01614.92
5.5.130.0120.01714.98
5.5.120.0130.01714.95
5.5.110.0110.01814.94
5.5.100.0130.01714.92
5.5.90.0150.01614.92
5.5.80.0130.01714.95
5.5.70.0120.01914.94
5.5.60.0160.01514.90
5.5.50.0130.01815.01
5.5.40.0150.01814.98
5.5.30.0140.01814.98
5.5.20.0140.01914.97
5.5.10.0130.01914.88
5.5.00.0150.01714.85

preferences:
81.6 ms | 401 KiB | 5 Q