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.70.0120.00616.63
8.3.60.0040.01116.50
8.3.50.0090.01122.90
8.3.40.0120.00319.04
8.3.30.0120.00319.07
8.3.20.0040.00420.16
8.3.10.0000.00923.30
8.3.00.0030.00519.38
8.2.180.0040.01116.75
8.2.170.0090.00522.96
8.2.160.0000.01320.52
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0040.00421.02
8.2.110.0030.00619.45
8.2.100.0100.00317.97
8.2.90.0000.00818.41
8.2.80.0040.00417.97
8.2.70.0090.00017.88
8.2.60.0040.00417.91
8.2.50.0000.00818.07
8.2.40.0030.00619.94
8.2.30.0050.00218.10
8.2.20.0000.00817.97
8.2.10.0080.00018.18
8.2.00.0050.00518.03
8.1.280.0120.00925.92
8.1.270.0080.00824.07
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.98
8.1.230.0120.00022.63
8.1.220.0050.00317.90
8.1.210.0030.00518.99
8.1.200.0030.00617.60
8.1.190.0080.00017.48
8.1.180.0080.00018.10
8.1.170.0000.00818.68
8.1.160.0050.00222.01
8.1.150.0040.00419.09
8.1.140.0080.00017.67
8.1.130.0000.00718.02
8.1.120.0050.00317.76
8.1.110.0030.00517.65
8.1.100.0060.00317.80
8.1.90.0040.00717.64
8.1.80.0040.00417.63
8.1.70.0040.00417.58
8.1.60.0050.00317.82
8.1.50.0030.00617.69
8.1.40.0060.00317.73
8.1.30.0050.00317.82
8.1.20.0040.00417.82
8.1.10.0080.00017.67
8.1.00.0040.00417.68
8.0.300.0080.00020.10
8.0.290.0040.00417.13
8.0.280.0070.00018.61
8.0.270.0030.00517.47
8.0.260.0030.00317.30
8.0.250.0030.00317.29
8.0.240.0050.00317.27
8.0.230.0030.00317.26
8.0.220.0050.00217.15
8.0.210.0030.00517.17
8.0.200.0000.00617.24
8.0.190.0090.00017.22
8.0.180.0030.00617.22
8.0.170.0000.00817.10
8.0.160.0000.00817.06
8.0.150.0040.00417.13
8.0.140.0030.00617.11
8.0.130.0000.00613.50
8.0.120.0000.00817.20
8.0.110.0000.00717.01
8.0.100.0000.00717.25
8.0.90.0000.00717.21
8.0.80.0000.01617.21
8.0.70.0020.00517.14
8.0.60.0070.00017.16
8.0.50.0040.00417.11
8.0.30.0090.00917.37
8.0.20.0120.00817.45
8.0.10.0000.00817.30
8.0.00.0060.01217.19
7.4.330.0000.00515.24
7.4.320.0070.00016.75
7.4.300.0030.00616.80
7.4.290.0020.00516.74
7.4.280.0000.00716.67
7.4.270.0000.00716.66
7.4.260.0100.00016.79
7.4.250.0030.00516.79
7.4.240.0000.00716.81
7.4.230.0050.00316.81
7.4.220.0090.00916.91
7.4.210.0070.01316.65
7.4.200.0050.00216.83
7.4.160.0080.00817.02
7.4.150.0070.01117.40
7.4.140.0090.00817.86
7.4.130.0110.01016.69
7.4.120.0100.00716.63
7.4.110.0140.01016.66
7.4.100.0120.00616.86
7.4.90.0110.00516.79
7.4.80.0110.00719.39
7.4.70.0070.01416.88
7.4.60.0130.00716.81
7.4.50.0050.00316.76
7.4.40.0060.01116.88
7.4.30.0060.00916.84
7.4.00.0060.00915.25
7.3.330.0030.00313.19
7.3.320.0030.00313.21
7.3.310.0000.00716.63
7.3.300.0000.00716.40
7.3.290.0150.00016.54
7.3.280.0110.00616.49
7.3.270.0030.01417.40
7.3.260.0190.02516.46
7.3.250.0040.01416.71
7.3.240.0130.00616.74
7.3.230.0090.00916.52
7.3.210.0100.00716.76
7.3.200.0070.01019.39
7.3.190.0130.00316.95
7.3.180.0090.00616.75
7.3.170.0130.00416.46
7.3.160.0040.01116.71
7.2.330.0100.00716.92
7.2.320.0060.01517.05
7.2.310.0100.00717.05
7.2.300.0070.01016.98
7.2.290.0100.00616.90
7.2.00.0030.00919.65
7.1.100.0110.00317.95
7.1.70.0000.00717.59
7.1.60.0070.01419.40
7.1.50.0130.01317.04
7.1.00.0030.07722.45
7.0.200.0350.01014.57
7.0.140.0070.07021.92
7.0.60.0030.08321.76
7.0.50.0070.03717.83
7.0.40.0100.04020.12
7.0.30.0300.05320.16
7.0.20.0270.08019.99
7.0.10.0030.08020.09
7.0.00.0000.06720.08
5.6.280.0000.07720.92
5.6.210.0130.07020.72
5.6.200.0100.07718.22
5.6.190.0030.08320.27
5.6.180.0270.08020.35
5.6.170.0230.05020.33
5.6.160.0070.06320.52
5.6.150.0170.07018.15
5.6.140.0030.07718.11
5.6.130.0100.06018.16
5.6.120.0130.08021.14
5.6.110.0000.04320.99
5.6.100.0030.09320.99
5.6.90.0170.07320.98
5.6.80.0070.08020.52
5.5.350.2800.03320.35
5.5.340.0070.03717.92
5.5.330.0130.07720.23
5.5.320.0100.07320.25
5.5.310.0200.04020.24
5.5.300.0200.06717.91
5.5.290.0000.09018.01
5.5.280.0170.07320.77
5.5.270.0100.08020.74
5.5.260.0070.07020.74
5.5.250.0030.07720.57
5.5.240.3800.04320.07
5.4.450.0270.04719.57
5.4.440.0400.04719.41
5.4.430.0500.04319.42
5.4.420.0170.05019.41
5.4.410.0330.04019.45
5.4.400.0270.03718.92
5.4.390.0270.04719.07
5.4.380.1130.07318.54
5.4.370.0970.05318.50
5.4.360.0900.05318.59
5.4.350.0770.05318.68
5.4.340.0930.05718.68
5.4.320.0050.04212.46
5.4.310.0020.04212.46
5.4.300.0030.03912.46
5.4.290.0050.04312.46
5.4.280.0070.03312.36
5.4.270.0070.03512.36
5.4.260.0080.03712.36
5.4.250.0070.03712.36
5.4.240.0080.03412.36
5.4.230.0080.03512.35
5.4.220.0070.03512.35
5.4.210.0100.04212.35
5.4.200.0060.03812.35
5.4.190.0090.03812.34
5.4.180.0060.03512.35
5.4.170.0060.03512.36
5.4.160.0060.03512.36
5.4.150.0040.03712.35
5.4.140.0060.03712.04
5.4.130.0040.03712.02
5.4.120.0060.03811.98
5.4.110.0080.03411.98
5.4.100.0040.04011.97
5.4.90.0060.03711.97
5.4.80.0070.03911.97
5.4.70.0090.03111.97
5.4.60.0050.04111.97
5.4.50.0060.04211.97
5.4.40.0050.03711.95
5.4.30.0070.04011.95
5.4.20.0070.03411.96
5.4.10.0060.03411.95
5.4.00.0050.04111.44
5.3.290.0080.03812.80
5.3.280.0040.04012.71
5.3.270.0060.03812.72
5.3.260.0070.04312.71
5.3.250.0110.04312.71
5.3.240.0070.03812.71
5.3.230.0050.03812.71
5.3.220.0100.04812.68
5.3.210.0080.04212.68
5.3.200.0060.03912.68
5.3.190.0100.03412.68
5.3.180.0030.03912.68
5.3.170.0070.03512.67
5.3.160.0070.03512.67
5.3.150.0060.04312.67
5.3.140.0080.04512.66
5.3.130.0050.03912.66
5.3.120.0070.04512.66
5.3.110.0110.03412.66
5.3.100.0080.03912.12
5.3.90.0080.03512.09
5.3.80.0060.03912.08
5.3.70.0080.05012.08
5.3.60.0080.03412.07
5.3.50.0040.04012.00
5.3.40.0070.03512.00
5.3.30.0110.03511.96
5.3.20.0060.04211.73
5.3.10.0050.03711.70
5.3.00.0090.03211.69
5.2.170.0040.0319.19
5.2.160.0040.0369.19
5.2.150.0060.0309.19
5.2.140.0070.0289.18
5.2.130.0030.0309.14
5.2.120.0030.0299.14
5.2.110.0050.0289.15
5.2.100.0040.0299.14
5.2.90.0060.0369.14
5.2.80.0090.0349.14
5.2.70.0030.0319.14
5.2.60.0070.0329.10
5.2.50.0030.0389.06
5.2.40.0060.0369.04
5.2.30.0010.0349.02
5.2.20.0020.0319.01
5.2.10.0040.0288.93
5.2.00.0070.0318.79
5.1.60.0030.0248.07
5.1.50.0030.0318.06
5.1.40.0120.0318.04
5.1.30.0000.0308.40
5.1.20.0090.0268.42
5.1.10.0060.0348.14
5.1.00.0050.0358.14
5.0.50.0030.0306.63
5.0.40.0040.0276.49
5.0.30.0070.0336.31
5.0.20.0030.0196.28
5.0.10.0020.0206.25
5.0.00.0040.0376.25
4.4.90.0020.0184.77
4.4.80.0050.0144.75
4.4.70.0040.0164.76
4.4.60.0030.0164.75
4.4.50.0020.0174.77
4.4.40.0020.0284.71
4.4.30.0060.0184.76
4.4.20.0030.0154.84
4.4.10.0050.0214.85
4.4.00.0020.0304.76
4.3.110.0020.0224.67
4.3.100.0030.0254.66
4.3.90.0040.0194.64
4.3.80.0010.0264.59
4.3.70.0020.0154.63
4.3.60.0060.0164.63
4.3.50.0020.0164.63
4.3.40.0030.0234.54
4.3.30.0020.0153.29
4.3.20.0010.0163.27
4.3.10.0020.0233.22
4.3.00.0000.02013.43

preferences:
51.44 ms | 401 KiB | 5 Q