3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = (new DateTime('2010-12-02'))->modify('first day of this month'); $end = (new DateTime('2012-05-06'))->modify('first day of this month'); $interval = DateInterval::createFromDateString('1 month'); $period = new DatePeriod($start, $interval, $end); foreach ($period as $dt) { echo $dt->format("Y-m") . "<br>\n"; } ?>

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.0140.00718.43
8.3.50.0070.01222.21
8.3.40.0100.00718.85
8.3.30.0110.00318.95
8.3.20.0090.00020.34
8.3.10.0030.00621.96
8.3.00.0000.00822.58
8.2.180.0110.01116.75
8.2.170.0070.00722.96
8.2.160.0110.00421.19
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00819.49
8.2.110.0000.00922.23
8.2.100.0040.00817.84
8.2.90.0040.00419.35
8.2.80.0040.00418.05
8.2.70.0060.00617.75
8.2.60.0040.00418.05
8.2.50.0030.00518.07
8.2.40.0050.00318.34
8.2.30.0040.00418.28
8.2.20.0000.00717.91
8.2.10.0040.00419.64
8.2.00.0050.00517.89
8.1.280.0140.00725.92
8.1.270.0050.00324.04
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00424.00
8.1.230.0040.00819.06
8.1.220.0040.00417.78
8.1.210.0040.00418.77
8.1.200.0000.00917.60
8.1.190.0040.00417.66
8.1.180.0060.00318.10
8.1.170.0040.00418.80
8.1.160.0000.00722.02
8.1.150.0050.00218.90
8.1.140.0050.00517.60
8.1.130.0000.00717.86
8.1.120.0030.00517.63
8.1.110.0060.00317.78
8.1.100.0040.00417.68
8.1.90.0040.00417.70
8.1.80.0050.00317.64
8.1.70.0000.00717.76
8.1.60.0050.00317.74
8.1.50.0040.00417.61
8.1.40.0000.00917.77
8.1.30.0030.00617.86
8.1.20.0040.00417.84
8.1.10.0000.00717.82
8.1.00.0040.00417.76
8.0.300.0000.00818.77
8.0.290.0080.00017.30
8.0.280.0000.00718.59
8.0.270.0050.00217.40
8.0.260.0040.00416.96
8.0.250.0070.00017.24
8.0.240.0040.00417.22
8.0.230.0000.00717.11
8.0.220.0030.00317.07
8.0.210.0070.00017.19
8.0.200.0040.00417.14
8.0.190.0000.00717.20
8.0.180.0040.00817.08
8.0.170.0040.00417.09
8.0.160.0050.00317.14
8.0.150.0040.00417.00
8.0.140.0070.00017.14
8.0.130.0000.00713.49
8.0.120.0030.00617.05
8.0.110.0000.00817.00
8.0.100.0040.00417.27
8.0.90.0040.00417.21
8.0.80.0090.01217.21
8.0.70.0000.00817.21
8.0.60.0050.00317.12
8.0.50.0030.00516.96
8.0.30.0140.00817.21
8.0.20.0130.01117.54
8.0.10.0040.00417.16
8.0.00.0140.00617.15
7.4.330.0050.00015.09
7.4.320.0000.00716.71
7.4.300.0000.00616.84
7.4.290.0000.00716.73
7.4.280.0000.00716.69
7.4.270.0030.00316.72
7.4.260.0000.00716.71
7.4.250.0030.00516.69
7.4.240.0020.00616.71
7.4.230.0070.00016.64
7.4.220.0070.01716.91
7.4.210.0060.01216.73
7.4.200.0040.00416.74
7.4.190.0020.00516.66
7.4.160.0150.00316.70
7.4.150.0150.00917.40
7.4.140.0100.01017.86
7.4.130.0090.00916.70
7.4.120.0090.01116.72
7.4.110.0150.00916.75
7.4.100.0140.00316.80
7.4.90.0120.00616.72
7.4.80.0130.00719.39
7.4.70.0030.01216.72
7.4.60.0110.00716.57
7.4.50.0040.00416.94
7.4.40.0040.01422.77
7.4.30.0080.00816.60
7.4.00.0140.00015.29
7.3.330.0030.00313.38
7.3.320.0030.00313.30
7.3.310.0050.00316.46
7.3.300.0070.00016.46
7.3.290.0160.00316.45
7.3.280.0080.00916.46
7.3.270.0060.01017.40
7.3.260.0130.00316.73
7.3.250.0120.00916.68
7.3.240.0070.01016.80
7.3.230.0090.00916.63
7.3.210.0040.01316.52
7.3.200.0040.01619.39
7.3.190.0110.01116.64
7.3.180.0080.00816.50
7.3.170.0130.00316.60
7.3.160.0060.01016.52
7.3.120.0070.00715.14
7.2.330.0110.01116.95
7.2.320.0170.00017.07
7.2.310.0070.01316.91
7.2.300.0120.00616.88
7.2.290.0110.00616.80
7.2.60.0000.01317.29
7.2.00.0070.00719.66
7.1.200.0090.00316.06
7.1.100.0000.01218.45
7.1.70.0130.00417.20
7.1.60.0280.00417.45
7.1.50.0090.00316.88
7.1.00.0100.06722.42
7.0.200.0060.00917.01
7.0.140.0030.07322.18
7.0.60.0130.08019.79
7.0.50.0030.05317.97
7.0.40.0100.06720.24
7.0.30.0270.04320.17
7.0.20.0270.05020.13
7.0.10.0370.07720.04
7.0.00.0030.04720.16
5.6.280.0070.07320.86
5.6.210.0070.04320.50
5.6.200.0070.08018.21
5.6.190.0100.08720.33
5.6.180.3670.04720.61
5.6.170.0330.07020.33
5.6.160.0130.04720.33
5.6.150.0000.04318.13
5.6.140.0030.07318.16
5.6.130.0000.04318.23
5.6.120.0030.06321.09
5.6.110.0130.03321.04
5.6.100.0070.08320.99
5.6.90.0070.08720.97
5.6.80.0070.08320.38
5.6.70.3170.03720.37
5.5.350.0100.08020.32
5.5.340.0100.07318.02
5.5.330.0070.04720.21
5.5.320.0370.07020.28
5.5.310.0170.04020.21
5.5.300.0070.08018.02
5.5.290.0100.08317.98
5.5.280.0100.03320.87
5.5.270.0130.03720.86
5.5.260.0030.05020.75
5.5.250.0070.07720.69
5.5.240.0070.07720.23
5.4.450.0530.03019.46
5.4.440.0400.04319.57
5.4.430.0330.04719.45
5.4.420.0470.05319.13
5.4.410.0100.05718.70
5.4.400.0030.06318.66
5.4.390.0130.05318.56
5.4.380.0200.04718.50
5.4.370.0400.04018.50
5.4.360.0200.05018.72
5.4.350.0370.05018.64
5.4.340.0270.05318.65
5.4.320.0050.03712.46
5.4.310.0060.04212.45
5.4.300.0070.03812.45
5.4.290.0030.04312.45
5.4.280.0070.03912.35
5.4.270.0060.03712.32
5.4.260.0070.03712.32
5.4.250.0070.03712.32
5.4.240.0070.03612.32
5.4.230.0060.03812.31
5.4.220.0050.03712.31
5.4.210.0050.03612.32
5.4.200.0070.03712.32
5.4.190.0080.03512.30
5.4.180.0050.03812.31
5.4.170.0060.03612.32
5.4.160.0080.03512.32
5.4.150.0080.03512.31
5.4.140.0080.03512.00
5.4.130.0020.03911.98
5.4.120.0070.03411.93
5.4.110.0060.03511.93
5.4.100.0030.03911.93
5.4.90.0080.03511.93
5.4.80.0050.03911.93
5.4.70.0090.03211.93
5.4.60.0100.03211.93
5.4.50.0070.03411.93
5.4.40.0040.03711.92
5.4.30.0060.03611.91
5.4.20.0050.03611.91
5.4.10.0040.03711.91
5.4.00.0040.03811.41
5.3.290.0060.04612.80
5.3.280.0090.03512.71
5.3.270.0070.03812.72
5.3.260.0040.04112.72
5.3.250.0060.03812.72
5.3.240.0060.03712.72
5.3.230.0050.03812.71
5.3.220.0060.03912.68
5.3.210.0040.04012.68
5.3.200.0050.03712.68
5.3.190.0070.03712.68
5.3.180.0040.03912.67
5.3.170.0080.03812.67
5.3.160.0040.03912.68
5.3.150.0100.03512.67
5.3.140.0050.03812.66
5.3.130.0040.04412.65
5.3.120.0110.03512.65
5.3.110.0060.04012.66
5.3.100.0070.04212.12
5.3.90.0070.03812.08
5.3.80.0070.03612.07
5.3.70.0070.03712.08
5.3.60.0090.03312.06
5.3.50.0050.03812.00
5.3.40.0040.03812.00
5.3.30.0040.03811.94
5.3.20.0080.03311.70
5.3.10.0070.03411.66
5.3.00.0060.03811.64
5.2.170.0070.0299.15
5.2.160.0060.0279.15
5.2.150.0080.0279.15
5.2.140.0050.0299.14
5.2.130.0050.0289.10
5.2.120.0030.0309.11
5.2.110.0030.0319.12
5.2.100.0040.0309.11
5.2.90.0060.0359.11
5.2.80.0100.0379.11
5.2.70.0050.0399.10
5.2.60.0050.0309.05
5.2.50.0080.0289.03
5.2.40.0020.0319.00
5.2.30.0070.0328.98
5.2.20.0050.0288.97
5.2.10.0020.0318.89
5.2.00.0030.0308.75
5.1.60.0020.0268.04
5.1.50.0040.0258.04
5.1.40.0030.0268.02
5.1.30.0070.0278.36
5.1.20.0060.0258.40
5.1.10.0040.0268.12
5.1.00.0040.0318.11
5.0.50.0070.0256.59
5.0.40.0040.0266.45
5.0.30.0040.0306.26
5.0.20.0040.0186.23
5.0.10.0080.0186.21
5.0.00.0040.0316.20
4.4.90.0030.0154.78
4.4.80.0030.0144.75
4.4.70.0020.0164.75
4.4.60.0040.0144.76
4.4.50.0050.0124.77
4.4.40.0020.0264.70
4.4.30.0040.0144.76
4.4.20.0050.0194.84
4.4.10.0050.0174.85
4.4.00.0030.0244.76
4.3.110.0040.0174.67
4.3.100.0020.0174.66
4.3.90.0020.0154.63
4.3.80.0010.0254.58
4.3.70.0020.0154.63
4.3.60.0030.0174.63
4.3.50.0010.0174.63
4.3.40.0020.0274.54
4.3.30.0040.0143.27
4.3.20.0070.0113.25
4.3.10.0020.0163.21
4.3.00.0070.01715.05

preferences:
46.06 ms | 401 KiB | 5 Q