3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = (new DateTime('2014-01-01'))->modify('first day of this month'); $end = (new DateTime('2015-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.0250.01122.24
8.3.50.0100.01123.34
8.3.40.0240.00422.50
8.3.30.0220.00822.48
8.3.20.0140.01123.07
8.3.10.0190.00624.72
8.3.00.0220.00722.47
8.2.180.0210.01121.46
8.2.170.0310.00824.44
8.2.160.0170.01424.01
8.2.150.0200.00925.05
8.2.140.0230.00625.29
8.2.130.0200.00626.04
8.2.120.0180.00623.49
8.2.110.0180.00823.22
8.2.100.0180.00722.04
8.2.90.0180.00522.67
8.2.80.0180.00621.95
8.2.70.0190.00721.90
8.2.60.0180.00319.85
8.2.50.0160.00619.90
8.2.40.0130.00720.34
8.2.30.0110.00719.96
8.2.20.0140.00619.77
8.2.10.0180.00219.78
8.2.00.0120.00619.84
8.1.280.0180.00925.92
8.1.270.0160.00924.06
8.1.260.0190.00426.14
8.1.250.0200.00227.00
8.1.240.0120.00922.62
8.1.230.0150.00721.94
8.1.220.0190.00421.91
8.1.210.0180.00922.35
8.1.200.0220.00321.70
8.1.190.0140.00619.50
8.1.180.0160.00519.69
8.1.170.0110.00719.99
8.1.160.0110.00819.99
8.1.150.0110.00719.83
8.1.140.0160.00219.62
8.1.130.0110.00719.58
8.1.120.0100.00919.63
8.1.110.0140.00419.76
8.1.100.0140.00519.60
8.1.90.0140.00519.64
8.1.80.0110.00719.67
8.1.70.0120.00719.63
8.1.60.0150.00419.29
8.1.50.0150.00419.24
8.1.40.0140.00519.31
8.1.30.0140.00719.02
8.1.20.0150.00519.08
8.1.10.0130.00619.03
8.1.00.0150.00518.99
8.0.300.0140.00522.99
8.0.290.0140.00621.52
8.0.280.0130.00619.95
8.0.270.0160.00419.16
8.0.260.0140.00519.12
8.0.250.0130.00719.29
8.0.240.0120.00819.24
8.0.230.0130.00719.20
8.0.220.0130.00719.09
8.0.210.0210.00319.15
8.0.200.0170.00419.13
8.0.190.0150.00518.86
8.0.180.0140.00718.79
8.0.170.0150.00418.78
8.0.160.0140.00418.48
8.0.150.0140.00418.47
8.0.140.0120.00618.53
8.0.130.0130.00617.94
8.0.120.0130.00518.47
8.0.110.0110.00718.57
8.0.100.0160.00418.48
8.0.90.0140.00518.39
8.0.80.0140.00718.25
8.0.70.0150.00618.51
8.0.60.0110.00918.49
8.0.50.0140.00618.40
8.0.30.0130.00718.00
8.0.20.0120.00717.96
8.0.10.0140.00818.09
8.0.00.0150.00617.93
7.4.330.0110.00718.54
7.4.320.0140.00618.94
7.4.300.0140.00718.91
7.4.290.0160.00418.48
7.4.280.0120.00618.21
7.4.270.0110.00618.21
7.4.260.0160.00218.20
7.4.250.0140.00418.17
7.4.240.0110.00417.97
7.4.230.0110.00718.16
7.4.220.0140.00418.17
7.4.210.0110.00717.64
7.4.200.0120.00718.21
7.4.190.0110.00718.27
7.4.180.0160.00418.18
7.4.160.0120.00817.85
7.4.150.0120.00817.59
7.4.140.0120.00817.70
7.4.130.0110.00917.52
7.4.120.0120.00817.50
7.4.110.0140.00617.58
7.4.100.0120.00817.55
7.4.90.0130.00617.55
7.4.80.0130.00717.57
7.4.70.0110.00817.50
7.4.60.0130.00717.47
7.4.50.0130.00717.46
7.4.40.0120.00717.52
7.4.30.0110.00917.52
7.4.20.0080.01017.43
7.4.10.0120.00917.21
7.4.00.0100.00917.16
7.3.330.0140.00417.49
7.3.320.0140.00417.50
7.3.310.0130.00518.06
7.3.300.0150.00418.04
7.3.290.0190.00618.07
7.3.280.0100.00917.52
7.3.270.0130.00717.51
7.3.260.0160.00517.44
7.3.250.0150.00517.42
7.3.240.0140.00617.48
7.3.230.0140.00617.50
7.3.220.0130.00717.60
7.3.210.0150.00617.48
7.3.200.0160.00517.70
7.3.190.0130.00817.39
7.3.180.0160.00917.42
7.3.170.0130.00717.46
7.3.160.0110.00717.42
7.3.150.0120.00717.41
7.3.140.0130.00717.31
7.3.130.0100.00917.13
7.3.120.0130.00717.16
7.3.110.0120.00817.14
7.3.100.0130.00616.90
7.3.90.0140.00616.98
7.3.80.0110.00816.91
7.3.70.0110.00816.83
7.3.60.0100.00816.88
7.3.50.0120.00716.93
7.3.40.0120.00716.90
7.3.30.0130.00716.90
7.3.20.0210.00817.09
7.3.10.0200.00717.07
7.3.00.0210.00817.09
7.2.340.0170.00717.71
7.2.330.0220.00617.62
7.2.320.0190.00417.63
7.2.310.0200.00717.59
7.2.300.0170.00817.61
7.2.290.0160.00817.59
7.2.280.0150.00817.55
7.2.270.0160.00817.47
7.2.260.0130.01017.30
7.2.250.0150.00817.33
7.2.240.0150.00917.30
7.2.230.0140.00817.03
7.2.220.0130.00917.06
7.2.210.0130.00817.04
7.2.200.0130.00717.08
7.2.190.0140.00717.05
7.2.180.0120.00917.03
7.2.170.0150.00717.05
7.2.160.0120.01017.04
7.2.150.0230.00917.41
7.2.140.0290.00717.39
7.2.130.0220.00717.43
7.2.120.0230.00817.43
7.2.110.0220.00717.40
7.2.100.0230.00817.40
7.2.90.0230.00817.28
7.2.80.0290.00617.24
7.2.70.0220.00817.29
7.2.60.0200.00917.23
7.2.50.0220.00817.25
7.2.40.0270.00917.29
7.2.30.0290.00817.32
7.2.20.0260.00817.29
7.2.10.0300.00617.27
7.2.00.0260.00617.39
7.1.330.0170.00717.04
7.1.320.0140.00816.70
7.1.310.0150.00716.70
7.1.300.0130.00916.64
7.1.290.0140.00716.69
7.1.280.0170.00516.66
7.1.270.0190.00716.65
7.1.260.0140.00816.64
7.1.250.0220.00816.47
7.1.240.0190.00816.50
7.1.230.0230.00716.49
7.1.220.0230.00616.53
7.1.210.0270.00816.39
7.1.200.0240.00916.37
7.1.190.0270.00616.40
7.1.180.0230.00816.36
7.1.170.0260.00716.32
7.1.160.0300.00816.38
7.1.150.0280.00616.37
7.1.140.0260.00716.39
7.1.130.0280.00816.38
7.1.120.0280.00816.38
7.1.110.0300.00716.42
7.1.100.0210.00916.56
7.1.90.0230.00716.49
7.1.80.0230.00816.49
7.1.70.0230.00616.48
7.1.60.0250.00818.17
7.1.50.0250.00718.21
7.1.40.0220.00818.19
7.1.30.0200.01018.17
7.1.20.0250.00818.12
7.1.10.0230.00716.43
7.1.00.0190.00816.38
7.0.330.0250.00816.21
7.0.320.0230.00616.17
7.0.310.0280.00716.03
7.0.300.0270.00816.04
7.0.290.0300.00816.08
7.0.280.0310.00716.07
7.0.270.0290.00716.12
7.0.260.0290.00716.03
7.0.250.0260.00816.20
7.0.240.0280.00716.21
7.0.230.0250.00816.21
7.0.220.0280.00816.18
7.0.210.0390.00816.14
7.0.200.0240.00816.23
7.0.190.0250.00616.21
7.0.180.0240.00916.14
7.0.170.0240.00716.17
7.0.160.0240.00816.15
7.0.150.0220.00916.14
7.0.140.0220.00916.13
7.0.130.0280.00716.14
7.0.120.0260.00616.11
7.0.110.0210.00716.14
7.0.100.0220.00816.17
7.0.90.0220.00816.17
7.0.80.0220.00716.13
7.0.70.0230.00716.10
7.0.60.0220.00816.13
7.0.50.0250.00816.13
7.0.40.0230.00716.18
7.0.30.0220.00716.14
7.0.20.0230.00616.15
7.0.10.0210.00816.18
7.0.00.0220.00716.06
5.6.400.0190.00716.64
5.6.390.0150.01016.69
5.6.380.0160.00816.55
5.6.370.0170.00816.57
5.6.360.0170.01116.64
5.6.350.0170.00816.59
5.6.340.0160.00916.62
5.6.330.0160.00916.50
5.6.320.0170.00916.59
5.6.310.0180.00816.51
5.6.300.0140.01416.89
5.6.290.0160.01316.87
5.6.280.0140.01316.88
5.6.270.0150.01316.89
5.6.260.0160.01216.95
5.6.250.0150.01216.90
5.6.240.0130.01616.89
5.6.230.0150.01416.94
5.6.220.0140.01516.95
5.6.210.0140.01416.94
5.6.200.0150.01216.92
5.6.190.0150.01416.93
5.6.180.0150.01216.92
5.6.170.0140.01416.94
5.6.160.0140.01216.91
5.6.150.0140.01416.95
5.6.140.0130.01416.91
5.6.130.0140.01216.89
5.6.120.0140.01416.97
5.6.110.0150.01316.87
5.6.100.0130.01416.91
5.6.90.0120.01516.88
5.6.80.0150.01216.76
5.6.70.0140.01216.82
5.6.60.0140.01316.78
5.6.50.0130.01316.75
5.6.40.0130.01416.78
5.6.30.0130.01416.76
5.6.20.0130.01416.75
5.6.10.0110.01516.74
5.6.00.0120.01416.78
5.5.380.0170.01116.25
5.5.370.0140.01316.28
5.5.360.0150.01216.16
5.5.350.0160.01216.17
5.5.340.0140.01316.24
5.5.330.0150.01216.24
5.5.320.0140.01216.22
5.5.310.0140.01316.20
5.5.300.0140.01216.24
5.5.290.0160.01316.23
5.5.280.0140.01316.21
5.5.270.0120.01516.21
5.5.260.0150.01516.20
5.5.250.0130.01416.21
5.5.240.0120.01416.11
5.5.230.0140.01316.13
5.5.220.0140.01316.19
5.5.210.0150.01216.12
5.5.200.0140.01316.09
5.5.190.0140.01316.11
5.5.180.0120.01416.06
5.5.170.0160.00816.14
5.5.160.0120.01316.09
5.5.150.0130.01316.09
5.5.140.0140.01316.05
5.5.130.0130.01216.08
5.5.120.0140.01316.08
5.5.110.0160.01316.06
5.5.100.0140.01316.04
5.5.90.0130.01416.10
5.5.80.0130.01416.08
5.5.70.0120.01316.17
5.5.60.0140.01116.09
5.5.50.0140.01316.07
5.5.40.0120.01216.07
5.5.30.0130.01616.11
5.5.20.0130.01416.14
5.5.10.0140.01316.10
5.5.00.0140.01216.10
5.4.450.0120.01114.59
5.4.440.0120.01114.53
5.4.430.0100.01214.56
5.4.420.0110.01314.55
5.4.410.0120.01014.53
5.4.400.0110.01114.50
5.4.390.0110.01014.40
5.4.380.0110.01114.44
5.4.370.0120.01114.49
5.4.360.0110.01214.48
5.4.350.0130.01014.48
5.4.340.0100.01214.47
5.4.330.0120.00613.89
5.4.320.0120.01014.47
5.4.310.0110.00914.48
5.4.300.0100.01014.50
5.4.290.0110.01014.47
5.4.280.0110.01214.46
5.4.270.0130.01014.47
5.4.260.0130.01114.48
5.4.250.0100.01114.47
5.4.240.0120.01114.45
5.4.230.0110.01214.38
5.4.220.0110.01114.40
5.4.210.0110.01014.40
5.4.200.0100.01114.40
5.4.190.0120.01114.37
5.4.180.0100.01214.38
5.4.170.0120.01114.39
5.4.160.0110.01114.40
5.4.150.0130.01014.41
5.4.140.0110.01114.24
5.4.130.0110.01114.23
5.4.120.0120.01014.24
5.4.110.0100.01314.25
5.4.100.0110.01114.28
5.4.90.0120.01014.22
5.4.80.0110.01014.29
5.4.70.0110.01214.28
5.4.60.0120.01214.27
5.4.50.0090.01214.22
5.4.40.0130.00914.23
5.4.30.0120.01014.25
5.4.20.0120.01314.25
5.4.10.0120.01114.24
5.4.00.0110.01214.17

preferences:
53.53 ms | 401 KiB | 5 Q