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".", "; } $dateStr = substr($dateStr, 0, -1); 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.60.0040.01216.50
8.3.50.0220.00922.98
8.3.40.0060.00918.71
8.3.30.0070.00719.22
8.3.20.0040.00420.20
8.3.10.0040.00423.55
8.3.00.0040.00417.63
8.2.180.0090.00617.00
8.2.170.0070.00722.96
8.2.160.0060.00820.52
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0080.00021.10
8.2.110.0060.00319.39
8.2.100.0030.00917.84
8.2.90.0040.00418.22
8.2.80.0050.00317.97
8.2.70.0040.00417.88
8.2.60.0030.00517.93
8.2.50.0040.00418.07
8.2.40.0040.00420.07
8.2.30.0040.00418.19
8.2.20.0060.00317.81
8.2.10.0000.00818.30
8.2.00.0000.00818.05
8.1.280.0070.01025.92
8.1.270.0040.00424.04
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.90
8.1.230.0120.00022.81
8.1.220.0060.00317.79
8.1.210.0030.00519.04
8.1.200.0070.00317.60
8.1.190.0030.00517.61
8.1.180.0040.00418.10
8.1.170.0040.00418.82
8.1.160.0000.00722.07
8.1.150.0000.00718.98
8.1.140.0000.00817.58
8.1.130.0030.00318.00
8.1.120.0020.00517.75
8.1.110.0000.00817.72
8.1.100.0100.00017.63
8.1.90.0030.00617.75
8.1.80.0060.00317.61
8.1.70.0030.00317.68
8.1.60.0050.00317.66
8.1.50.0000.00917.59
8.1.40.0030.00517.68
8.1.30.0030.00617.79
8.1.20.0040.00417.69
8.1.10.0030.00517.63
8.1.00.0000.00817.81
8.0.300.0080.00020.03
8.0.290.0040.00416.88
8.0.280.0000.00818.58
8.0.270.0000.00717.30
8.0.260.0000.00717.31
8.0.250.0030.00317.22
8.0.240.0060.00317.08
8.0.230.0000.00717.13
8.0.220.0030.00317.15
8.0.210.0030.00317.14
8.0.200.0030.00317.25
8.0.190.0030.00617.12
8.0.180.0000.00817.23
8.0.170.0040.00417.13
8.0.160.0040.00417.20
8.0.150.0050.00317.10
8.0.140.0080.00017.13
8.0.130.0060.00013.50
8.0.120.0040.00417.02
8.0.110.0050.00217.16
8.0.100.0000.00817.18
8.0.90.0050.00317.11
8.0.80.0090.01317.19
8.0.70.0000.00817.20
8.0.60.0000.00717.03
8.0.50.0000.00817.04
8.0.30.0080.01117.37
8.0.20.0110.00917.40
8.0.10.0030.00517.16
8.0.00.0070.01017.02
7.4.330.0000.00615.25
7.4.320.0030.00316.79
7.4.300.0060.00316.73
7.4.290.0060.00016.80
7.4.280.0040.00416.84
7.4.270.0070.00016.75
7.4.260.0030.00716.77
7.4.250.0030.00616.80
7.4.240.0070.00016.74
7.4.230.0070.00016.91
7.4.220.0100.01416.73
7.4.210.0080.00516.63
7.4.200.0000.00716.88
7.4.160.0130.00316.85
7.4.150.0140.00517.40
7.4.140.0080.00917.86
7.4.130.0130.00916.70
7.4.120.0070.01016.63
7.4.110.0060.01216.81
7.4.100.0120.00616.80
7.4.90.0090.00916.56
7.4.80.0030.01319.39
7.4.70.0140.00716.78
7.4.60.0100.00716.65
7.4.50.0000.00416.77
7.4.40.0100.01316.71
7.4.30.0060.00916.61
7.4.00.0090.00615.20
7.3.330.0000.00613.35
7.3.320.0080.00013.34
7.3.310.0070.00016.36
7.3.300.0000.00716.46
7.3.290.0030.01016.52
7.3.280.0060.01016.46
7.3.270.0150.00317.40
7.3.260.0180.01316.52
7.3.250.0100.01116.58
7.3.240.0100.01316.54
7.3.230.0100.00716.51
7.3.210.0140.00416.35
7.3.200.0130.00619.39
7.3.190.0120.00916.81
7.3.180.0080.00816.45
7.3.170.0060.01216.87
7.3.160.0090.00616.76
7.2.330.0100.00716.89
7.2.320.0060.01317.07
7.2.310.0060.01217.14
7.2.300.0060.01216.98
7.2.290.0030.01316.97
7.2.00.0040.01119.71
7.1.100.0080.00418.02
7.1.70.0000.02317.47
7.1.60.0030.02119.40
7.1.50.0150.00917.10
7.1.00.0030.07322.45
7.0.200.0350.00714.62
7.0.140.0000.07722.09
7.0.60.0130.05319.97
7.0.50.0030.04017.84
7.0.40.0130.03720.23
7.0.30.0330.07320.18
7.0.20.0230.06020.09
7.0.10.0130.05020.16
7.0.00.0030.08720.12
5.6.280.0030.07320.80
5.6.210.0170.07020.56
5.6.200.0070.07018.13
5.6.190.0070.04720.61
5.6.180.0200.04020.65
5.6.170.0200.04020.48
5.6.160.0170.08020.42
5.6.150.0070.07018.08
5.6.140.0030.05318.15
5.6.130.0200.05318.11
5.6.120.0100.03721.14
5.6.110.0130.07721.11
5.6.100.0100.07020.98
5.6.90.0130.07320.87
5.6.80.0100.08020.48
5.5.350.0030.08320.30
5.5.340.0070.04317.92
5.5.330.0070.06320.36
5.5.320.0200.03020.32
5.5.310.0270.06020.30
5.5.300.0100.04317.93
5.5.290.0100.07718.02
5.5.280.0130.08020.75
5.5.270.0030.08020.86
5.5.260.0100.08320.63
5.5.250.0100.08020.65
5.5.240.0100.05020.05
5.4.450.2370.04019.15
5.4.440.2470.04019.49
5.4.430.2370.03319.46
5.4.420.1870.04019.39
5.4.410.2230.03719.26
5.4.400.2300.04019.23
5.4.390.2400.04019.13
5.4.380.2600.03718.79
5.4.370.2700.03719.18
5.4.360.2470.03719.10
5.4.350.2400.04019.09
5.4.340.2630.03018.81
5.4.320.2530.04019.26
5.4.310.2300.03318.92
5.4.300.2170.04019.22
5.4.290.0130.06319.09
5.4.280.0070.04319.25
5.4.270.1430.05319.06
5.4.260.2270.03719.16
5.4.250.2370.04719.23
5.4.240.2400.04719.10
5.4.230.2430.03719.24
5.4.220.2730.03719.08
5.4.210.2530.04019.25
5.4.200.2330.04018.91
5.4.190.2470.04018.92
5.4.180.2570.03319.04
5.4.170.2370.02718.77
5.4.160.2270.03318.75
5.4.150.2200.04019.09
5.4.140.2370.04016.35
5.4.130.2530.03316.30
5.4.120.2500.03716.37
5.4.110.2470.04316.55
5.4.100.2470.03716.28
5.4.90.2530.03716.51
5.4.80.2530.03716.50
5.4.70.2270.03316.49
5.4.60.2500.03316.46
5.4.50.2370.03016.36
5.4.40.2600.05716.43
5.4.30.2530.04316.28
5.4.20.2170.04316.36
5.4.10.2500.04316.36
5.4.00.2270.03715.63
5.3.290.2400.03014.55
5.3.280.2370.03314.46
5.3.270.2400.03014.45
5.3.260.2630.03714.47
5.3.250.2400.03014.60
5.3.240.2070.03714.60
5.3.230.2500.02714.46
5.3.220.2470.04014.52
5.3.210.3500.05314.43
5.3.200.3200.03014.53
5.3.190.2570.04014.48
5.3.180.2700.03314.52
5.3.170.2570.04014.41
5.3.160.2530.04014.48
5.3.150.2500.04014.54
5.3.140.2270.04014.59
5.3.130.2500.04014.50
5.3.120.2530.03714.60
5.3.110.0630.05314.54
5.3.100.0170.04313.99
5.3.90.0000.04314.08
5.3.80.0300.07014.01
5.3.70.2430.03713.86
5.3.60.2530.03714.06
5.3.50.2400.04013.73
5.3.40.2430.04014.05
5.3.30.2530.03713.88
5.3.20.2300.03713.68
5.3.10.2500.03313.52
5.3.00.2400.03713.45
5.2.170.2230.02711.20
5.2.160.2330.03011.09
5.2.150.2000.02310.99
5.2.140.1900.03011.00
5.2.130.2130.04011.16
5.2.120.2130.03311.19
5.2.110.2070.03711.18
5.2.100.1970.02311.04
5.2.90.2170.02711.26
5.2.80.2300.03010.98
5.2.70.2070.02711.04
5.2.60.1970.02311.08
5.2.50.2170.03010.88
5.2.40.1600.03010.86
5.2.30.1700.03710.82
5.2.20.1570.03311.00
5.2.10.1530.03310.78
5.2.00.1830.03010.79
5.1.60.1800.0239.89
5.1.50.1730.0209.94
5.1.40.1700.0209.86
5.1.30.1530.03010.49
5.1.20.1600.02710.26
5.1.10.1600.02710.15
5.1.00.0000.02710.00
5.0.50.0000.0208.48
5.0.40.0000.0208.58
5.0.30.0000.0338.21
5.0.20.0030.0208.09
5.0.10.0030.0208.11
5.0.00.0270.0278.39
4.4.90.0870.0108.02
4.4.80.0800.0178.02
4.4.70.0770.0138.02
4.4.60.0870.0208.02
4.4.50.0770.0178.02
4.4.40.0870.0278.02
4.4.30.0770.0238.02
4.4.20.1000.0238.02
4.4.10.0900.0178.02
4.4.00.0800.0278.02
4.3.110.0930.0178.02
4.3.100.0800.0138.02
4.3.90.0730.0208.02
4.3.80.0730.0278.02
4.3.70.0770.0178.02
4.3.60.1030.0108.02
4.3.50.0830.0178.02
4.3.40.0970.0338.02
4.3.30.0430.0238.02
4.3.20.0470.0178.02
4.3.10.0400.0138.02
4.3.00.0470.0178.02

preferences:
48.49 ms | 401 KiB | 5 Q