3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2013-11-22'); $start->modify('first day of this month'); $end = new DateTime(); $end->modify('first day of next 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.0120.00318.45
8.3.50.0120.00822.06
8.3.40.0140.00418.93
8.3.30.0080.00819.09
8.3.20.0030.00520.35
8.3.10.0030.00520.64
8.3.00.0050.00317.88
8.2.180.0070.00716.63
8.2.170.0090.00622.96
8.2.160.0090.00620.35
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00022.23
8.2.110.0060.00322.37
8.2.100.0090.00319.89
8.2.90.0080.00019.34
8.2.80.0030.00517.97
8.2.70.0080.00317.88
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0000.00818.31
8.2.30.0030.00519.41
8.2.20.0000.00717.95
8.2.10.0040.00418.22
8.2.00.0040.00418.00
8.1.280.0110.00425.92
8.1.270.0040.00422.19
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00323.84
8.1.230.0040.00719.12
8.1.220.0050.00317.91
8.1.210.0030.00518.77
8.1.200.0040.00817.47
8.1.190.0050.00317.13
8.1.180.0030.00618.10
8.1.170.0040.00418.88
8.1.160.0000.00822.08
8.1.150.0040.00419.03
8.1.140.0000.00817.66
8.1.130.0070.00018.04
8.1.120.0070.00017.78
8.1.110.0070.00017.73
8.1.100.0000.00717.61
8.1.90.0030.00317.65
8.1.80.0040.00417.73
8.1.70.0080.00017.64
8.1.60.0080.00017.68
8.1.50.0060.00317.66
8.1.40.0000.00717.58
8.1.30.0040.00417.80
8.1.20.0080.00017.74
8.1.10.0060.00317.77
8.1.00.0050.00317.76
8.0.300.0050.00218.77
8.0.290.0000.00717.13
8.0.280.0070.00018.59
8.0.270.0040.00417.40
8.0.260.0060.00317.40
8.0.250.0070.00017.11
8.0.240.0000.00717.25
8.0.230.0070.00017.22
8.0.220.0030.00317.04
8.0.210.0030.00317.06
8.0.200.0000.00717.19
8.0.190.0040.00417.25
8.0.180.0040.00417.14
8.0.170.0050.00317.19
8.0.160.0000.00717.11
8.0.150.0000.00817.11
8.0.140.0040.00417.18
8.0.130.0050.00213.53
8.0.120.0030.00517.06
8.0.110.0000.00717.21
8.0.100.0050.00217.21
8.0.90.0040.00417.03
8.0.80.0060.01217.21
8.0.70.0030.00517.02
8.0.60.0040.00417.23
8.0.50.0030.00517.11
8.0.30.0130.01117.21
8.0.20.0090.00917.40
8.0.10.0040.00417.13
8.0.00.0080.01017.16
7.4.330.0000.00515.13
7.4.320.0030.00316.82
7.4.300.0000.00616.75
7.4.290.0050.00316.83
7.4.280.0080.00016.68
7.4.270.0030.00516.71
7.4.260.0000.00716.59
7.4.250.0030.00616.76
7.4.240.0040.00416.81
7.4.230.0000.00716.83
7.4.220.0100.01716.87
7.4.210.0030.01016.83
7.4.200.0030.00316.79
7.4.160.0040.01216.58
7.4.150.0070.01017.40
7.4.140.0090.01017.86
7.4.130.0060.01116.82
7.4.120.0040.01316.56
7.4.110.0080.00816.53
7.4.100.0070.01016.77
7.4.90.0180.00016.73
7.4.80.0070.01019.39
7.4.70.0030.01216.67
7.4.60.0150.00016.86
7.4.50.0060.00316.71
7.4.40.0070.01016.84
7.4.30.0080.00816.79
7.4.00.0080.00814.91
7.3.330.0030.00313.37
7.3.320.0000.00713.40
7.3.310.0070.00016.52
7.3.300.0030.00316.45
7.3.290.0070.00716.50
7.3.280.0090.00716.48
7.3.270.0120.00617.40
7.3.260.0060.01616.55
7.3.250.0100.00716.54
7.3.240.0130.00316.50
7.3.230.0080.00816.52
7.3.210.0100.01316.61
7.3.200.0120.00619.39
7.3.190.0150.00716.58
7.3.180.0090.00916.85
7.3.170.0080.00816.75
7.3.160.0060.00916.49
7.3.10.0070.00716.90
7.3.00.0060.00316.91
7.2.330.0120.00616.98
7.2.320.0080.00816.76
7.2.310.0110.00917.01
7.2.300.0030.01316.98
7.2.290.0060.01216.73
7.2.130.0140.00017.14
7.2.120.0060.00917.21
7.2.110.0150.00317.24
7.2.100.0060.00317.11
7.2.90.0080.00816.87
7.2.80.0000.01617.11
7.2.70.0060.00617.23
7.2.60.0070.00517.15
7.2.50.0000.01217.25
7.2.40.0000.01517.01
7.2.30.0040.00817.22
7.2.20.0000.01116.90
7.2.10.0070.00316.97
7.2.00.0090.00318.41
7.1.250.0100.00316.02
7.1.200.0120.00015.59
7.1.100.0030.00818.38
7.1.70.0000.00817.49
7.1.60.0090.01519.12
7.1.50.0000.02316.87
7.1.00.0030.07322.54
7.0.200.0000.01017.00
7.0.140.0000.07022.12
7.0.60.0100.08019.86
7.0.50.0030.05017.91
7.0.40.0130.08320.05
7.0.30.0270.07720.18
7.0.20.0230.04720.17
7.0.10.0070.04020.20
7.0.00.0070.04720.00
5.6.280.0030.07321.06
5.6.210.0130.07320.54
5.6.200.0130.07718.16
5.6.190.0070.07720.63
5.6.180.0470.06720.36
5.6.170.0330.04020.54
5.6.160.0070.06720.50
5.6.150.0000.06718.17
5.6.140.0070.08018.23
5.6.130.0070.07018.10
5.6.120.0030.04320.80
5.6.110.0070.08021.02
5.6.100.0030.09321.00
5.6.90.0170.08321.10
5.6.80.0030.03720.48
5.5.350.0300.07320.34
5.5.340.0070.08017.97
5.5.330.0000.05020.21
5.5.320.0170.05720.34
5.5.310.0230.07020.33
5.5.300.0000.08317.96
5.5.290.0100.08318.00
5.5.280.0130.08320.89
5.5.270.0100.08020.96
5.5.260.0130.08020.64
5.5.250.0070.05720.54
5.5.240.0070.07320.34
5.4.450.0500.04319.59
5.4.440.0430.05019.49
5.4.430.0300.05319.57
5.4.420.0170.04319.48
5.4.410.0170.05019.45
5.4.400.0270.04019.45
5.4.390.0300.04719.45
5.4.380.0400.06718.68
5.4.370.0430.06018.50
5.4.360.0730.05018.57
5.4.350.0500.07318.62
5.4.340.0530.05018.70
5.4.320.0100.03812.46
5.4.310.0080.03812.45
5.4.300.0050.04012.45
5.4.290.0050.04812.45
5.4.280.0100.03512.35
5.4.270.0080.03712.35
5.4.260.0100.04112.35
5.4.250.0050.03712.35
5.4.240.0040.04412.35
5.4.230.0060.03712.34
5.4.220.0070.03912.34
5.4.210.0030.03812.34
5.4.200.0080.03612.34
5.4.190.0040.03812.34
5.4.180.0050.03712.34
5.4.170.0050.03712.35
5.4.160.0020.03912.34
5.4.150.0080.03312.34
5.4.140.0070.03512.03
5.4.130.0020.03912.02
5.4.120.0030.03711.97
5.4.110.0080.03311.96
5.4.100.0060.03511.97
5.4.90.0040.03811.97
5.4.80.0050.03711.97
5.4.70.0070.03511.96
5.4.60.0080.03511.96
5.4.50.0080.04311.96
5.4.40.0090.03911.95
5.4.30.0040.03711.95
5.4.20.0100.03811.95
5.4.10.0070.03511.95
5.4.00.0080.03311.44
5.3.290.0090.04412.80
5.3.280.0060.04712.71
5.3.270.0100.04512.72
5.3.260.0100.04612.72
5.3.250.0110.04512.72
5.3.240.0080.04612.72
5.3.230.0060.04612.71
5.3.220.0080.03412.68
5.3.210.0070.04112.68
5.3.200.0060.03512.68
5.3.190.0080.03512.68
5.3.180.0060.04012.68
5.3.170.0060.03612.67
5.3.160.0020.04012.67
5.3.150.0060.03712.67
5.3.140.0060.03612.66
5.3.130.0070.03712.65
5.3.120.0030.04112.66
5.3.110.0060.03812.66
5.3.100.0070.03512.12
5.3.90.0080.03512.08
5.3.80.0070.03512.08
5.3.70.0080.03512.08
5.3.60.0080.03412.07
5.3.50.0090.03312.00
5.3.40.0060.03612.00
5.3.30.0060.03411.95
5.3.20.0050.03511.73
5.3.10.0070.03211.70
5.3.00.0060.03911.68
5.2.170.0060.0299.19
5.2.160.0070.0269.19
5.2.150.0050.0329.19
5.2.140.0030.0309.19
5.2.130.0060.0269.15
5.2.120.0030.0289.14
5.2.110.0010.0319.15
5.2.100.0030.0289.14
5.2.90.0050.0369.15
5.2.80.0040.0299.14
5.2.70.0040.0329.14
5.2.60.0040.0299.09
5.2.50.0070.0319.06
5.2.40.0060.0269.04
5.2.30.0010.0339.02
5.2.20.0010.0329.00
5.2.10.0070.0368.93
5.2.00.0040.0328.79
5.1.60.0050.0238.07
5.1.50.0050.0248.06
5.1.40.0040.0248.05
5.1.30.0050.0318.40
5.1.20.0030.0288.41
5.1.10.0040.0258.14
5.1.00.0070.0228.14
5.0.50.0040.0266.62
5.0.40.0010.0216.48
5.0.30.0030.0326.29
5.0.20.0060.0166.27
5.0.10.0010.0216.24
5.0.00.0040.0296.23
4.4.90.0030.0144.78
4.4.80.0020.0164.75
4.4.70.0010.0164.76
4.4.60.0040.0134.75
4.4.50.0000.0174.77
4.4.40.0010.0264.71
4.4.30.0030.0154.76
4.4.20.0010.0164.84
4.4.10.0060.0124.85
4.4.00.0030.0234.76
4.3.110.0040.0194.67
4.3.100.0050.0124.67
4.3.90.0030.0144.64
4.3.80.0010.0334.58
4.3.70.0020.0214.63
4.3.60.0040.0194.63
4.3.50.0050.0184.63
4.3.40.0060.0214.54
4.3.30.0020.0243.29
4.3.20.0040.0133.25
4.3.10.0030.0203.22
4.3.00.0130.01719.45

preferences:
40.34 ms | 401 KiB | 5 Q