3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2014-12-22'); $start->modify('first day of this month'); $end = new DateTime('2015-05-15'); $end->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") . PHP_EOL; }

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.01116.61
8.3.50.0110.00722.78
8.3.40.0150.00019.10
8.3.30.0110.00419.11
8.3.20.0000.00820.13
8.3.10.0040.00423.51
8.3.00.0080.00017.75
8.2.180.0150.00318.41
8.2.170.0070.01022.96
8.2.160.0120.00320.38
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00421.15
8.2.110.0060.00320.30
8.2.100.0090.00317.91
8.2.90.0050.00318.05
8.2.80.0060.00318.15
8.2.70.0000.00818.17
8.2.60.0030.00618.18
8.2.50.0080.00018.10
8.2.40.0080.00420.55
8.2.30.0040.00418.23
8.2.20.0040.00417.94
8.2.10.0000.00718.27
8.2.00.0000.00718.01
8.1.280.0090.00625.92
8.1.270.0040.00423.96
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.96
8.1.230.0060.00619.29
8.1.220.0030.00617.77
8.1.210.0030.00618.77
8.1.200.0060.00617.60
8.1.190.0000.00817.36
8.1.180.0060.00318.10
8.1.170.0040.00418.77
8.1.160.0040.00422.01
8.1.150.0020.00519.03
8.1.140.0070.00417.63
8.1.130.0070.00017.84
8.1.120.0020.00517.80
8.1.110.0030.00517.72
8.1.100.0070.00017.73
8.1.90.0100.00017.73
8.1.80.0000.00817.75
8.1.70.0040.00417.66
8.1.60.0030.00617.79
8.1.50.0000.00817.59
8.1.40.0030.00617.77
8.1.30.0080.00017.79
8.1.20.0040.00417.88
8.1.10.0040.00417.68
8.1.00.0000.00817.63
8.0.300.0040.00421.95
8.0.290.0040.00417.00
8.0.280.0030.00518.48
8.0.270.0030.00517.39
8.0.260.0060.00017.41
8.0.250.0040.00417.27
8.0.240.0000.00717.18
8.0.230.0030.00317.27
8.0.220.0040.00417.18
8.0.210.0000.00717.17
8.0.200.0000.00717.24
8.0.190.0030.00617.23
8.0.180.0040.00417.16
8.0.170.0000.00717.10
8.0.160.0040.00417.08
8.0.150.0070.00017.14
8.0.140.0000.00717.17
8.0.130.0000.00913.58
8.0.120.0000.00817.11
8.0.110.0040.00416.99
8.0.100.0050.00217.03
8.0.90.0000.00717.16
8.0.80.0070.01017.11
8.0.70.0000.00817.20
8.0.60.0040.00417.01
8.0.50.0000.00717.01
8.0.30.0170.00817.18
8.0.20.0090.00917.40
8.0.10.0070.00017.14
8.0.00.0160.00516.84
7.4.330.0050.00015.00
7.4.320.0000.00716.62
7.4.300.0040.00416.61
7.4.290.0000.00716.70
7.4.280.0050.00316.79
7.4.270.0070.00016.74
7.4.260.0040.00316.70
7.4.250.0070.00016.68
7.4.240.0040.00316.73
7.4.230.0070.00016.62
7.4.220.0120.00616.73
7.4.210.0060.00916.75
7.4.200.0070.00016.78
7.4.160.0140.00316.75
7.4.150.0030.01517.40
7.4.140.0080.01217.86
7.4.130.0080.00816.68
7.4.120.0130.00516.68
7.4.110.0030.01716.56
7.4.100.0090.00916.65
7.4.90.0110.00716.67
7.4.80.0080.01219.39
7.4.70.0030.01416.69
7.4.60.0160.00916.74
7.4.50.0040.00416.71
7.4.40.0090.00916.48
7.4.30.0130.00316.48
7.4.00.0100.00715.18
7.3.330.0060.00013.38
7.3.320.0000.00513.26
7.3.310.0000.00616.40
7.3.300.0030.00316.43
7.3.290.0030.01616.52
7.3.280.0060.01016.50
7.3.270.0030.01417.40
7.3.260.0140.00516.65
7.3.250.0120.00916.79
7.3.240.0060.00916.75
7.3.230.0160.00316.67
7.3.210.0120.00816.58
7.3.200.0040.01219.39
7.3.190.0060.01116.58
7.3.180.0030.01316.84
7.3.170.0030.01316.74
7.3.160.0070.01416.75
7.3.120.0150.00014.85
7.3.110.0070.01015.00
7.3.100.0030.01415.21
7.3.90.0040.01115.36
7.3.80.0090.00615.03
7.3.70.0090.00615.00
7.3.60.0030.01014.99
7.3.50.0120.00315.00
7.3.40.0130.00314.85
7.3.30.0090.00315.03
7.3.20.0030.01016.89
7.3.10.0030.00616.88
7.3.00.0040.01116.72
7.2.330.0090.00916.81
7.2.320.0130.00616.98
7.2.310.0100.01317.06
7.2.300.0170.00016.76
7.2.290.0160.00316.90
7.2.240.0160.00015.29
7.2.230.0030.00814.87
7.2.220.0040.00715.21
7.2.210.0030.01515.36
7.2.200.0000.01115.12
7.2.190.0090.00615.26
7.2.180.0030.01315.36
7.2.170.0060.01015.33
7.2.160.0100.00715.20
7.2.150.0110.00717.23
7.2.140.0140.00417.16
7.2.130.0030.00917.32
7.2.120.0030.01317.23
7.2.110.0030.00917.26
7.2.100.0100.00617.21
7.2.90.0080.00417.14
7.2.80.0100.00617.10
7.2.70.0130.00317.21
7.2.60.0070.01017.20
7.2.50.0130.00417.06
7.2.40.0040.01117.23
7.2.30.0080.00317.11
7.2.20.0070.01017.26
7.2.10.0030.01417.11
7.2.00.0070.00818.52
7.1.330.0070.01015.83
7.1.320.0060.00915.70
7.1.310.0100.00715.86
7.1.300.0000.00915.69
7.1.290.0060.00916.09
7.1.280.0070.00715.96
7.1.270.0080.00816.08
7.1.260.0060.00916.04
7.1.250.0100.00315.87
7.1.100.0030.01017.96
7.1.70.0000.00817.52
7.1.60.0150.00319.40
7.1.50.0100.01417.11
7.1.00.0070.07322.24
7.0.200.0050.01017.07
7.0.140.0030.07322.07
7.0.60.0000.04720.10
7.0.50.0100.07717.80
7.0.40.0070.06019.90
7.0.30.0470.04320.04
7.0.20.0200.03720.17
7.0.10.0100.08720.12
7.0.00.0030.04320.09
5.6.280.0070.07021.07
5.6.210.0000.09020.61
5.6.200.0030.05018.19
5.6.190.0030.04320.27
5.6.180.0270.08020.27
5.6.170.0500.06720.45
5.6.160.0000.06320.46
5.6.150.0100.05318.18
5.6.140.0030.06018.21
5.6.130.0030.04718.17
5.6.120.0100.07720.94
5.6.110.0070.04020.95
5.6.100.0070.08721.13
5.6.90.0100.06320.98
5.6.80.0100.06020.40
5.5.350.0000.03320.41
5.5.340.0000.09017.92
5.5.330.0030.04020.40
5.5.320.0400.07320.29
5.5.310.0170.04020.21
5.5.300.0100.07317.89
5.5.290.0070.08717.86
5.5.280.0070.08320.96
5.5.270.0070.05720.78
5.5.260.0030.04720.75
5.5.250.0030.04020.78
5.5.240.0100.07020.36
5.4.450.0070.04319.26
5.4.440.0400.04719.41
5.4.430.0530.04719.26
5.4.420.0230.04319.57
5.4.410.0630.03718.98
5.4.400.0700.03318.81
5.4.390.0530.04018.81
5.4.380.0400.04318.60
5.4.370.0330.05318.71
5.4.360.0200.06318.70
5.4.350.0370.05318.65
5.4.340.0230.06318.77
5.4.320.0030.04012.45
5.4.310.0040.04012.45
5.4.300.0050.03812.46
5.4.290.0050.04312.45
5.4.280.0040.03712.35
5.4.270.0110.03212.35
5.4.260.0080.03612.35
5.4.250.0050.04012.35
5.4.240.0090.03412.35
5.4.230.0020.04312.34
5.4.220.0040.03812.34
5.4.210.0050.03712.34
5.4.200.0060.03812.34
5.4.190.0030.03912.34
5.4.180.0040.03712.34
5.4.170.0070.04112.35
5.4.160.0030.03912.35
5.4.150.0060.03612.34
5.4.140.0080.03512.03
5.4.130.0040.03712.01
5.4.120.0070.03511.97
5.4.110.0110.03411.97
5.4.100.0090.03911.97
5.4.90.0070.03611.96
5.4.80.0050.03811.97
5.4.70.0040.03711.96
5.4.60.0080.03211.96
5.4.50.0060.03511.96
5.4.40.0080.03411.95
5.4.30.0030.03911.95
5.4.20.0040.04511.95
5.4.10.0050.03711.95
5.4.00.0070.04011.44
5.3.290.0040.04312.80
5.3.280.0070.03712.71
5.3.270.0060.04212.72
5.3.260.0070.04012.72
5.3.250.0060.04012.72
5.3.240.0080.03712.72
5.3.230.0050.03812.71
5.3.220.0070.03612.68
5.3.210.0030.04212.68
5.3.200.0040.03812.68
5.3.190.0070.03812.68
5.3.180.0060.03812.67
5.3.170.0050.03712.67
5.3.160.0050.03912.67
5.3.150.0050.03812.68
5.3.140.0060.04812.66
5.3.130.0050.04812.66
5.3.120.0060.05012.66
5.3.110.0070.04012.66
5.3.100.0110.03812.12
5.3.90.0040.05012.08
5.3.80.0100.04612.07
5.3.70.0100.03512.07
5.3.60.0070.03512.07
5.3.50.0050.03712.00
5.3.40.0050.03812.00
5.3.30.0050.03611.95
5.3.20.0060.03511.72
5.3.10.0120.02811.70
5.3.00.0050.03611.68
5.2.170.0070.0289.19
5.2.160.0040.0369.19
5.2.150.0060.0309.19
5.2.140.0060.0369.19
5.2.130.0060.0419.14
5.2.120.0030.0339.14
5.2.110.0040.0309.15
5.2.100.0050.0289.14
5.2.90.0040.0369.15
5.2.80.0050.0349.14
5.2.70.0060.0399.14
5.2.60.0070.0339.10
5.2.50.0040.0319.07
5.2.40.0060.0319.04
5.2.30.0050.0299.01
5.2.20.0040.0309.01
5.2.10.0020.0318.93
5.2.00.0020.0338.79
5.1.60.0030.0278.07
5.1.50.0070.0298.06
5.1.40.0040.0288.05
5.1.30.0080.0348.40
5.1.20.0050.0358.42
5.1.10.0030.0338.14
5.1.00.0120.0298.14
5.0.50.0030.0256.62
5.0.40.0050.0266.48
5.0.30.0090.0616.29
5.0.20.0030.0206.27
5.0.10.0090.0346.24
5.0.00.0070.0336.23
4.4.90.0000.0184.78
4.4.80.0040.0204.75
4.4.70.0050.0184.75
4.4.60.0060.0154.75
4.4.50.0050.0194.77
4.4.40.0050.0334.71
4.4.30.0080.0224.76
4.4.20.0030.0154.84
4.4.10.0030.0164.85
4.4.00.0030.0264.76
4.3.110.0050.0174.67
4.3.100.0020.0174.66
4.3.90.0050.0134.63
4.3.80.0020.0254.58
4.3.70.0030.0144.63
4.3.60.0010.0174.63
4.3.50.0010.0184.63
4.3.40.0030.0304.54
4.3.30.0030.0653.28
4.3.20.0040.0193.26
4.3.10.0020.0203.22
4.3.00.0070.01715.98

preferences:
58.23 ms | 401 KiB | 5 Q