3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = 20150903; $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); 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.0110.01118.22
8.3.50.0110.00820.98
8.3.40.0140.00718.80
8.3.30.0110.00418.81
8.3.20.0000.00720.35
8.3.10.0040.00423.66
8.3.00.0040.00419.54
8.2.180.0090.00618.29
8.2.170.0090.00922.96
8.2.160.0100.00720.23
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00317.63
8.2.110.0000.00922.27
8.2.100.0070.00717.50
8.2.90.0040.00419.08
8.2.80.0000.00817.97
8.2.70.0030.00617.38
8.2.60.0050.00317.80
8.2.50.0060.00318.07
8.2.40.0000.01119.28
8.2.30.0040.00419.71
8.2.20.0040.00417.77
8.2.10.0050.00318.12
8.2.00.0000.00818.14
8.1.280.0140.00325.92
8.1.270.0080.00020.38
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00422.53
8.1.230.0080.00417.42
8.1.220.0000.00917.74
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0050.00517.11
8.1.180.0060.00318.10
8.1.170.0000.00718.50
8.1.160.0040.00422.04
8.1.150.0040.00418.84
8.1.140.0000.00817.42
8.1.130.0030.00317.70
8.1.120.0020.00517.33
8.1.110.0040.00417.36
8.1.100.0040.00417.29
8.1.90.0030.00417.41
8.1.80.0040.00417.43
8.1.70.0000.00717.38
8.1.60.0050.00317.46
8.1.50.0000.00917.49
8.1.40.0080.00017.60
8.1.30.0000.00817.63
8.1.20.0040.00417.68
8.1.10.0000.00717.58
8.1.00.0080.00017.54
8.0.300.0040.00718.77
8.0.290.0050.00216.63
8.0.280.0040.00418.52
8.0.270.0070.00017.20
8.0.260.0030.00317.21
8.0.250.0040.00416.85
8.0.240.0040.00416.96
8.0.230.0030.00516.96
8.0.220.0070.00016.87
8.0.210.0030.00316.90
8.0.200.0000.00616.93
8.0.190.0080.00017.00
8.0.180.0000.00816.86
8.0.170.0050.00216.90
8.0.160.0000.00716.90
8.0.150.0070.00016.93
8.0.140.0070.00016.88
8.0.130.0040.00413.35
8.0.120.0050.00316.93
8.0.110.0070.00016.88
8.0.100.0000.00716.94
8.0.90.0000.00716.91
8.0.80.0060.01016.88
8.0.70.0000.00716.97
8.0.60.0000.00716.92
8.0.50.0040.00416.94
8.0.30.0050.01117.05
8.0.20.0100.00817.40
8.0.10.0070.00017.05
8.0.00.0130.00616.63
7.4.330.0000.00615.09
7.4.320.0000.00616.47
7.4.300.0030.00316.44
7.4.290.0080.00016.47
7.4.280.0080.00016.47
7.4.270.0070.00016.63
7.4.260.0030.00316.63
7.4.250.0080.00016.50
7.4.240.0020.00516.58
7.4.230.0000.00716.51
7.4.220.0090.01216.72
7.4.210.0070.00716.60
7.4.200.0030.00316.37
7.4.160.0120.00316.46
7.4.150.0130.00617.40
7.4.140.0120.00617.86
7.4.130.0070.01016.46
7.4.120.0100.00716.54
7.4.110.0120.00916.59
7.4.100.0100.00716.65
7.4.90.0140.00416.68
7.4.80.0120.01019.39
7.4.70.0100.00716.60
7.4.60.0060.01016.45
7.4.50.0000.00916.47
7.4.40.0100.00716.55
7.4.30.0100.00716.41
7.4.00.0120.00315.20
7.3.330.0000.00613.07
7.3.320.0000.00513.20
7.3.310.0070.00016.04
7.3.300.0080.00016.33
7.3.290.0080.00816.26
7.3.280.0090.00816.23
7.3.270.0110.01217.40
7.3.260.0100.00716.46
7.3.250.0110.00516.25
7.3.240.0030.01416.54
7.3.230.0070.01016.49
7.3.210.0190.00616.24
7.3.200.0070.00816.36
7.3.190.0080.00816.21
7.3.180.0070.01416.50
7.3.170.0160.00616.27
7.3.160.0110.00916.17
7.2.330.0030.01416.58
7.2.320.0030.01516.25
7.2.310.0100.00716.58
7.2.300.0160.00416.55
7.2.290.0100.00716.46
7.2.60.0060.01016.75
7.2.00.0040.01518.98
7.1.200.0100.00315.75
7.1.100.0030.01217.92
7.1.70.0000.00816.97
7.1.60.0130.01019.17
7.1.50.0110.02134.63
7.1.00.0030.07322.51
7.0.200.0000.00716.40
7.0.60.0100.07719.84
7.0.50.0000.07717.85
7.0.40.0070.08320.27
7.0.30.0330.05720.04
7.0.20.0270.08020.16
7.0.10.0130.08020.20
7.0.00.0100.04720.10
5.6.280.0030.06020.86
5.6.210.0030.04020.48
5.6.200.0030.05318.19
5.6.190.0070.08020.64
5.6.180.3400.04320.41
5.6.170.0230.03320.48
5.6.160.0100.08320.46
5.6.150.0130.07318.22
5.6.140.0100.04718.07
5.6.130.0100.05718.07
5.6.120.0100.08320.96
5.6.110.0070.07721.02
5.6.100.0130.08021.03
5.6.90.0030.04720.96
5.6.80.0100.03320.52
5.6.70.2530.05720.37
5.5.350.0000.07320.39
5.5.340.0100.04017.95
5.5.330.0030.07720.32
5.5.320.0270.08320.34
5.5.310.0230.07020.28
5.5.300.0030.07718.02
5.5.290.0030.05018.01
5.5.280.0000.07020.80
5.5.270.0030.09020.72
5.5.260.0100.07720.76
5.5.250.0000.09320.69
5.5.240.0370.06720.36
5.4.450.0970.04719.40
5.4.440.0900.05719.43
5.4.430.0870.06019.09
5.4.420.0770.04719.63
5.4.410.0830.05319.30
5.4.400.0870.05319.09
5.4.390.0600.07019.09
5.4.380.0730.05719.25
5.4.370.0770.04719.11
5.4.360.0630.06018.95
5.4.350.0670.05318.81
5.4.340.0670.06018.91
5.4.320.0700.05318.95
5.4.310.0730.05018.95
5.4.300.0700.05719.14
5.4.290.0800.04319.30
5.4.280.0600.06319.16
5.4.270.0730.04719.07
5.4.260.0770.05319.07
5.4.250.0700.05018.96
5.4.240.0830.03719.28
5.4.230.0700.05319.06
5.4.220.0670.05718.80
5.4.210.0800.04719.25
5.4.200.0730.04719.13
5.4.190.0700.05318.79
5.4.180.0670.05319.09
5.4.170.0700.05318.89
5.4.160.0600.06019.14
5.4.150.0630.06019.12
5.4.140.0670.05716.30
5.4.130.0870.07316.32
5.4.120.0700.05016.24
5.4.110.1000.06016.56
5.4.100.1230.04716.39
5.4.90.1000.04716.49
5.4.80.0830.05016.48
5.4.70.0270.06716.24
5.4.60.0330.06016.45
5.4.50.0030.03316.03
5.4.40.0130.07316.36
5.4.30.0100.06316.27
5.4.20.0270.03316.42

preferences:
72.35 ms | 401 KiB | 5 Q