3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "2018-11"; $b = "2019-01"; $i = date("Ym", strtotime($a)); while($i <= date("Ym", strtotime($b))){ echo $i."\n"; if(substr($i, 4, 2) == "12") $i = (date("Y", strtotime($i."01")) + 1)."-01"; else $i++; }

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.0060.01618.56
8.3.50.0160.00419.91
8.3.40.0150.00918.93
8.3.30.0130.01018.84
8.3.20.0100.00021.73
8.3.10.0040.00723.65
8.3.00.0030.00623.51
8.2.180.0300.00716.50
8.2.170.0100.02622.96
8.2.160.0250.01320.39
8.2.150.0170.00324.18
8.2.140.0150.00624.66
8.2.130.0140.00326.16
8.2.120.0070.01019.66
8.2.110.0030.01719.22
8.2.100.0130.01318.10
8.2.90.0160.01017.88
8.2.80.0070.01717.97
8.2.70.0130.00717.91
8.2.60.0040.01818.28
8.2.50.0060.01618.10
8.2.40.0030.01419.46
8.2.30.0100.01619.46
8.2.20.0060.01218.23
8.2.10.0030.01920.80
8.2.00.0140.00719.50
8.1.280.0290.01625.92
8.1.270.0110.00718.72
8.1.260.0070.01026.35
8.1.250.0120.00628.09
8.1.240.0140.00721.02
8.1.230.0170.01017.83
8.1.220.0090.00917.80
8.1.210.0030.01518.77
8.1.200.0070.01517.48
8.1.190.0060.01317.25
8.1.180.0070.01418.10
8.1.170.0100.01018.66
8.1.160.0000.02019.02
8.1.150.0090.00919.09
8.1.140.0030.01822.23
8.1.130.0110.01120.23
8.1.120.0070.01417.64
8.1.110.0160.00917.66
8.1.100.0100.01317.75
8.1.90.0030.01617.68
8.1.80.0000.02117.69
8.1.70.0080.01217.76
8.1.60.0120.00617.79
8.1.50.0100.01317.78
8.1.40.0030.01717.63
8.1.30.0070.01817.70
8.1.20.0060.01517.82
8.1.10.0110.01117.71
8.1.00.0000.02017.73
8.0.300.0120.00918.96
8.0.290.0100.01316.75
8.0.280.0040.01518.51
8.0.270.0150.00917.29
8.0.260.0060.01218.46
8.0.250.0030.01517.05
8.0.240.0030.01317.21
8.0.230.0030.01517.09
8.0.220.0060.01517.06
8.0.210.0120.00917.00
8.0.200.0060.01317.16
8.0.190.0070.01617.07
8.0.180.0000.02917.06
8.0.170.0110.01117.09
8.0.160.0070.01817.20
8.0.150.0000.02416.95
8.0.140.0030.01516.96
8.0.130.0150.00913.46
8.0.120.0060.01217.07
8.0.110.0030.02017.13
8.0.100.0030.01617.09
8.0.90.0070.01416.95
8.0.80.0160.04317.07
8.0.70.0030.02017.05
8.0.60.0040.02217.13
8.0.50.0030.01617.12
8.0.30.0190.02717.10
8.0.20.0470.02717.37
8.0.10.0100.01017.21
8.0.00.0460.04116.87
7.4.330.0070.01016.79
7.4.320.0070.01716.57
7.4.300.0030.01516.51
7.4.290.0090.00916.59
7.4.280.0000.02416.54
7.4.270.0070.01116.67
7.4.260.0000.01716.65
7.4.250.0100.01016.52
7.4.240.0060.01916.53
7.4.230.0030.01516.66
7.4.220.0060.01316.52
7.4.210.0160.04316.65
7.4.200.0060.01216.45
7.4.160.0320.05316.67
7.4.140.0370.06917.86
7.4.130.0210.04916.66
7.4.120.0500.06616.62
7.4.110.0210.03416.56
7.4.100.0540.08416.69
7.4.90.0100.07316.76
7.4.80.0240.10819.39
7.4.70.0320.03816.39
7.4.60.0150.11216.53
7.4.50.0110.01816.59
7.4.40.0130.05116.46
7.4.00.0160.01315.14
7.3.330.0080.00613.34
7.3.320.0110.00313.34
7.3.310.0090.01216.34
7.3.300.0090.01516.35
7.3.290.0100.01316.33
7.3.280.0250.05416.21
7.3.260.0270.04516.51
7.3.240.0370.05916.52
7.3.230.0410.07316.43
7.3.210.0440.07816.57
7.3.200.0280.06416.71
7.3.190.0260.03516.39
7.3.180.0180.05416.71
7.3.170.0130.06816.44
7.3.160.0290.10116.55
7.3.00.1470.01714.23
7.2.330.0520.07416.66
7.2.320.0240.05616.93
7.2.310.0410.05416.46
7.2.300.0330.09116.95
7.2.290.0220.03816.63
7.2.130.1160.04715.04
7.2.120.0930.03015.00
7.2.110.0760.05714.75
7.2.100.0600.02314.73
7.2.90.0730.04614.93
7.2.80.1090.02114.70
7.2.70.0720.04615.23
7.2.60.0780.03415.13
7.2.50.0840.06015.20
7.2.40.1110.01615.33
7.2.30.0540.02515.17
7.2.20.0780.02514.79
7.2.10.0710.02415.35
7.2.00.0690.02214.91
7.1.250.0610.03214.15
7.0.330.0750.04213.36
5.6.380.0100.03514.29

preferences:
54.73 ms | 400 KiB | 5 Q