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); $dateStr; foreach ($period as $dt) { $dateStr = $dateStr . $dt->format("Y-m")."-01".", "; } echo $dateStr;

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.40.0140.00318.92
8.3.30.0140.00018.95
8.3.20.0040.00420.33
8.3.10.0080.00023.77
8.3.00.0050.00319.63
8.2.170.0110.00322.96
8.2.160.0000.01420.38
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0070.00020.02
8.2.110.0030.00621.18
8.2.100.0090.00318.16
8.2.90.0060.00319.34
8.2.80.0000.00818.00
8.2.70.0060.00318.13
8.2.60.0030.00618.05
8.2.50.0040.00418.34
8.2.40.0000.00720.66
8.2.30.0050.00219.29
8.2.20.0000.00818.11
8.2.10.0040.00418.20
8.2.00.0000.00918.09
8.1.270.0060.00324.05
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0080.00023.98
8.1.230.0070.00417.81
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0000.00817.60
8.1.190.0030.00617.60
8.1.180.0040.00418.10
8.1.170.0030.00618.82
8.1.160.0050.00219.04
8.1.150.0040.00419.05
8.1.140.0050.00217.64
8.1.130.0030.00318.03
8.1.120.0000.00717.75
8.1.110.0000.00817.80
8.1.100.0030.00717.64
8.1.90.0080.00017.77
8.1.80.0030.00617.79
8.1.70.0040.00417.71
8.1.60.0000.00817.82
8.1.50.0040.00417.74
8.1.40.0060.00317.66
8.1.30.0040.00417.81
8.1.20.0000.00817.94
8.1.10.0000.00817.70
8.1.00.0040.00417.81
8.0.300.0000.00818.77
8.0.290.0000.00817.00
8.0.280.0000.00718.52
8.0.270.0050.00317.29
8.0.260.0040.00417.47
8.0.250.0000.00717.18
8.0.240.0040.00417.38
8.0.230.0000.00717.15
8.0.220.0000.00717.29
8.0.210.0030.00317.22
8.0.200.0030.00317.26
8.0.190.0090.00017.37
8.0.180.0080.00417.16
8.0.170.0040.00417.11
8.0.160.0000.00717.29
8.0.150.0040.00417.28
8.0.140.0070.00017.17
8.0.130.0030.00313.64
8.0.120.0050.00317.21
8.0.110.0050.00217.16
8.0.100.0000.00717.04
8.0.90.0000.00717.29
8.0.80.0200.00317.18
8.0.70.0080.00017.36
8.0.60.0040.00417.35
8.0.50.0000.00817.11
8.0.30.0100.00917.32
8.0.20.0150.01417.40
8.0.10.0050.00317.45
8.0.00.0150.00316.98
7.4.330.0000.00515.09
7.4.320.0070.00016.81
7.4.300.0040.00416.82
7.4.290.0030.00316.83
7.4.280.0000.00816.64
7.4.270.0030.00316.84
7.4.260.0040.00416.73
7.4.250.0000.00816.69
7.4.240.0020.00516.74
7.4.230.0070.00016.90
7.4.220.0070.01116.85
7.4.210.0100.01016.77
7.4.200.0050.00316.67
7.4.160.0060.00916.84
7.4.150.0070.01017.40
7.4.140.0090.01217.86
7.4.130.0130.00716.70
7.4.120.0120.00516.81
7.4.110.0100.00716.76
7.4.100.0120.00616.52
7.4.90.0080.00816.66
7.4.80.0110.00619.39
7.4.70.0160.00416.83
7.4.60.0070.01116.56
7.4.50.0000.00616.30
7.4.40.0030.01316.43
7.4.30.0080.00916.60
7.4.00.0000.01215.04
7.3.330.0060.00013.29
7.3.320.0000.00713.48
7.3.310.0040.00416.55
7.3.300.0000.00816.58
7.3.290.0000.01516.50
7.3.280.0090.00816.50
7.3.270.0120.00617.40
7.3.260.0420.00916.75
7.3.250.0110.00816.69
7.3.240.0150.00716.94
7.3.230.0150.00716.65
7.3.210.0120.00616.59
7.3.200.0150.00819.39
7.3.190.0100.00716.72
7.3.180.0130.00316.75
7.3.170.0070.01016.79
7.3.160.0060.00916.52
7.2.330.0030.01316.84
7.2.320.0100.01016.68
7.2.310.0160.00316.90
7.2.300.0100.00716.68
7.2.290.0110.01116.86
7.1.100.0000.00918.14
7.1.70.0050.00517.53
7.1.60.0150.00719.40
7.1.50.0110.01417.23
7.1.00.0000.07722.30
7.0.200.0440.00614.80
7.0.140.0030.07322.08
7.0.60.0070.07721.82
7.0.50.0070.08317.82
7.0.40.0000.05320.07
7.0.30.0330.06720.17
7.0.20.0470.05720.19
7.0.10.0000.09320.13
7.0.00.0070.08720.00
5.6.280.0100.06721.10
5.6.210.0130.07320.61
5.6.200.0100.08018.16
5.6.190.0100.08020.82
5.6.180.0330.04320.42
5.6.170.0270.08320.53
5.6.160.0070.05320.50
5.6.150.0100.08018.09
5.6.140.0030.04018.19
5.6.130.0000.04318.10
5.6.120.0000.06321.03
5.6.110.0100.03720.89
5.6.100.0100.07721.11
5.6.90.0030.04721.12
5.6.80.0100.06720.49
5.5.350.0400.06720.35
5.5.340.0030.04018.03
5.5.330.0070.04020.22
5.5.320.0370.07720.21
5.5.310.0170.07320.27
5.5.300.0200.07317.92
5.5.290.0130.05717.88
5.5.280.0070.08720.96
5.5.270.0130.05020.76
5.5.260.0070.08720.76
5.5.250.0100.07720.54
5.5.240.0100.07320.18
5.4.450.4430.05019.38
5.4.440.3730.03719.49
5.4.430.3530.02719.25
5.4.420.3470.03719.36
5.4.410.3970.03319.46
5.4.400.4030.03718.93
5.4.390.3870.04019.16
5.4.380.4030.03319.23
5.4.370.3770.04019.16
5.4.360.3630.04319.07
5.4.350.3670.04019.09
5.4.340.3830.04019.00
5.4.320.3730.03319.13
5.4.310.3870.04019.13
5.4.300.3800.03019.26
5.4.290.4430.03719.04
5.4.280.3700.03719.13
5.4.270.4400.03719.04
5.4.260.4000.03719.18
5.4.250.3830.04018.87
5.4.240.3770.03719.04
5.4.230.3830.03019.13
5.4.220.3670.03719.17
5.4.210.4000.02719.26
5.4.200.3670.04319.25
5.4.190.3670.03319.17
5.4.180.4430.04019.01
5.4.170.4430.03719.12
5.4.160.4600.03319.14
5.4.150.4500.04018.91
5.4.140.3700.04016.48
5.4.130.4300.04016.45
5.4.120.4200.03716.37
5.4.110.3900.03316.43
5.4.100.4030.03016.52
5.4.90.1570.03016.47
5.4.80.0800.04716.41
5.4.70.4300.04016.41
5.4.60.4700.03016.27
5.4.50.3700.04316.32
5.4.40.4630.03316.29
5.4.30.4200.03016.27
5.4.20.4000.03716.30
5.4.10.3970.04016.22
5.4.00.4230.02015.86
5.3.290.3830.03714.62
5.3.280.3730.03714.39
5.3.270.4470.03014.71
5.3.260.4370.04314.56
5.3.250.4630.04314.49
5.3.240.4000.03314.40
5.3.230.4030.03014.51
5.3.220.4100.03314.52
5.3.210.4070.04314.50
5.3.200.3770.02714.59
5.3.190.0270.02314.52
5.3.180.0030.07014.45
5.3.170.4430.03314.54
5.3.160.4700.04014.52
5.3.150.4170.04014.37
5.3.140.4230.03714.53
5.3.130.4100.04014.53
5.3.120.4070.04014.52
5.3.110.4000.03314.51
5.3.100.4570.03713.97
5.3.90.4700.03713.95
5.3.80.4270.03713.96
5.3.70.0500.06313.99
5.3.60.0070.03714.02
5.3.50.0100.06713.89
5.3.40.4170.04313.77
5.3.30.4000.04713.73
5.3.20.3800.03313.66
5.3.10.3570.03713.48
5.3.00.3800.03013.63
5.2.170.1070.05311.08
5.2.160.4000.02711.03
5.2.150.3600.03011.04
5.2.140.3330.03011.01
5.2.130.3130.02710.99
5.2.120.2830.03011.07
5.2.110.3300.02711.07
5.2.100.3130.02711.26
5.2.90.3130.02711.01
5.2.80.3130.02711.12
5.2.70.3070.03010.95
5.2.60.3570.03310.90
5.2.50.3170.02310.84
5.2.40.2470.03010.98
5.2.30.2500.02310.87
5.2.20.2670.03010.78
5.2.10.2730.02710.85
5.2.00.2430.02710.71
5.1.60.3070.0279.89
5.1.50.2730.0309.97
5.1.40.2100.0279.96
5.1.30.3070.02310.18
5.1.20.2900.02710.34
5.1.10.2870.02310.17
5.1.00.2870.02310.04
5.0.50.1770.0208.53
5.0.40.1870.0238.26
5.0.30.1770.0338.30
5.0.20.1630.0208.25
5.0.10.1300.0138.22
5.0.00.1800.0238.13
4.4.90.1270.0136.08
4.4.80.1300.0136.08
4.4.70.1800.0206.08
4.4.60.1500.0176.08
4.4.50.1370.0176.08
4.4.40.1530.0206.08
4.4.30.1630.0176.08
4.4.20.1500.0136.08
4.4.10.1630.0206.08
4.4.00.1800.0276.08
4.3.110.1770.0176.08
4.3.100.1770.0176.08
4.3.90.1500.0176.08
4.3.80.1500.0236.08
4.3.70.1430.0176.08
4.3.60.1500.0136.08
4.3.50.1630.0136.08
4.3.40.1300.0206.08
4.3.30.0730.0136.08
4.3.20.0970.0176.08
4.3.10.0900.0136.08
4.3.00.0730.0136.08

preferences:
42 ms | 400 KiB | 5 Q