3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = (new DateTime('2017-01-01'))->modify('first day of this month'); $end = (new DateTime('2018-03-04'))->modify('first day of this month'); $interval = DateInterval::createFromDateString('1 month'); $period = new DatePeriod($start, $interval, $end); $months = array(); foreach ($period as $dt) { $months[] = $dt->format("F Y"); } print_r($months);

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.0120.00316.88
8.3.50.0070.00716.36
8.3.40.0140.00719.22
8.3.30.0060.00918.90
8.3.20.0050.00320.16
8.3.10.0040.00421.90
8.3.00.0080.00017.84
8.2.180.0090.00625.92
8.2.170.0030.01222.96
8.2.160.0130.00320.51
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00020.53
8.2.120.0000.00926.35
8.2.110.0120.00020.60
8.2.100.0090.00318.30
8.2.90.0040.00419.48
8.2.80.0090.00018.05
8.2.70.0040.00417.75
8.2.60.0060.00318.15
8.2.50.0070.00318.16
8.2.40.0050.00322.50
8.2.30.0040.00421.28
8.2.20.0040.00418.20
8.2.10.0000.00818.33
8.2.00.0050.00318.27
8.1.280.0100.00325.92
8.1.270.0000.00824.01
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00519.10
8.1.230.0080.00717.64
8.1.220.0040.00417.77
8.1.210.0000.00818.77
8.1.200.0040.00417.60
8.1.190.0000.00917.48
8.1.180.0000.00818.10
8.1.170.0040.00418.54
8.1.160.0050.00219.13
8.1.150.0000.00820.84
8.1.140.0050.00219.73
8.1.130.0000.00719.09
8.1.120.0030.00317.74
8.1.110.0000.00717.62
8.1.100.0030.00517.63
8.1.90.0030.00517.75
8.1.80.0000.00717.71
8.1.70.0070.00017.77
8.1.60.0030.00517.77
8.1.50.0000.00717.73
8.1.40.0080.00017.75
8.1.30.0030.00717.86
8.1.20.0040.00417.88
8.1.10.0040.00417.65
8.1.00.0060.00317.80
8.0.300.0070.00018.77
8.0.290.0040.00417.00
8.0.280.0000.00818.60
8.0.270.0000.01017.47
8.0.260.0000.00817.02
8.0.250.0000.00617.16
8.0.240.0000.00717.24
8.0.230.0040.00417.15
8.0.220.0000.00717.09
8.0.210.0000.00717.21
8.0.200.0000.00717.11
8.0.190.0080.00017.11
8.0.180.0000.00817.11
8.0.170.0000.00717.16
8.0.160.0070.00017.14
8.0.150.0000.00717.16
8.0.140.0080.00017.15
8.0.130.0000.00713.50
8.0.120.0030.00617.07
8.0.110.0000.00817.16
8.0.100.0040.00417.02
8.0.90.0070.00017.04
8.0.80.0070.01017.11
8.0.70.0040.00417.18
8.0.60.0040.00417.15
8.0.50.0050.00317.00
8.0.30.0110.00917.35
8.0.20.0120.00717.40
8.0.10.0070.00017.37
8.0.00.0120.00916.84
7.4.330.0050.00015.55
7.4.320.0030.00516.66
7.4.300.0070.00016.74
7.4.290.0000.00816.88
7.4.280.0040.00416.79
7.4.270.0030.00516.76
7.4.260.0000.00513.41
7.4.250.0070.00016.80
7.4.240.0000.00716.61
7.4.230.0030.00316.63
7.4.220.0130.00416.79
7.4.210.0050.01116.78
7.4.200.0030.00316.71
7.4.160.0140.00816.76
7.4.150.0080.00817.40
7.4.140.0090.00917.86
7.4.130.0120.00916.76
7.4.120.0090.00816.69
7.4.110.0060.01216.77
7.4.100.0160.00616.87
7.4.90.0030.01416.72
7.4.80.0100.00719.39
7.4.70.0140.00416.82
7.4.60.0070.00716.80
7.4.50.0100.00316.84
7.4.40.0100.01316.57
7.4.30.0050.01116.50
7.4.00.0090.00915.12
7.3.330.0050.00013.24
7.3.320.0050.00013.30
7.3.310.0000.00716.39
7.3.300.0030.00316.37
7.3.290.0030.00316.36
7.3.280.0090.00816.48
7.3.270.0140.00317.40
7.3.260.0170.00516.57
7.3.250.0130.00816.64
7.3.240.0120.00516.75
7.3.230.0200.01716.77
7.3.210.0060.01016.82
7.3.200.0070.01316.80
7.3.190.0150.00816.88
7.3.180.0120.00916.53
7.3.170.0080.00816.73
7.3.160.0090.00616.85
7.2.330.0100.01016.69
7.2.320.0070.01016.77
7.2.310.0110.00717.07
7.2.300.0070.01716.78
7.2.290.0120.00616.96
7.2.60.0030.01016.81
7.2.00.0060.01319.73
7.1.200.0070.00015.73
7.1.100.0000.01018.18
7.1.70.0090.01017.11
7.1.60.0290.01335.01
7.1.50.0200.01534.82
7.1.40.0240.01434.55
7.1.30.0180.02034.45
7.1.20.0250.01934.75
7.1.10.0120.01016.80
7.1.00.0070.01716.61
7.0.200.0080.01116.71
7.0.190.0100.01416.54
7.0.180.0040.01616.31
7.0.170.0060.01516.55
7.0.160.0080.01416.49
7.0.150.0040.00816.32
7.0.140.0050.01416.50
7.0.130.0080.01116.56
7.0.120.0050.01516.69
7.0.110.0120.00616.41
7.0.100.0140.00516.37
7.0.90.0000.01616.29
7.0.80.0100.01316.55
7.0.70.0020.02016.50
7.0.60.0100.01016.39
7.0.50.0160.01016.70
7.0.40.0120.01116.54
7.0.30.0080.01216.64
7.0.20.0160.00716.30
7.0.10.0100.01116.30
7.0.00.0080.00916.43

preferences:
35.12 ms | 401 KiB | 5 Q