3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2017-06-05'); $start->modify('first day of this month'); $end = new DateTime('2018-04-30'); $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("m-Y") . 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.0170.00316.75
8.3.50.0150.00616.76
8.3.40.0140.00718.75
8.3.30.0180.00318.79
8.3.20.0070.01120.18
8.3.10.0000.00821.78
8.3.00.0090.00920.37
8.2.180.0060.01518.54
8.2.170.0130.00722.96
8.2.160.0120.00620.60
8.2.150.0040.01524.18
8.2.140.0060.00324.66
8.2.130.0050.00321.12
8.2.120.0100.00326.35
8.2.110.0040.00820.67
8.2.100.0080.00318.03
8.2.90.0060.00319.30
8.2.80.0000.00718.05
8.2.70.0120.00017.97
8.2.60.0000.00818.12
8.2.50.0060.00318.10
8.2.40.0060.00320.52
8.2.30.0000.00821.22
8.2.20.0040.00418.21
8.2.10.0000.00818.20
8.2.00.0050.00218.21
8.1.280.0070.01125.92
8.1.270.0070.01124.09
8.1.260.0100.00326.35
8.1.250.0140.00428.09
8.1.240.0030.00624.02
8.1.230.0100.00319.42
8.1.220.0070.00317.78
8.1.210.0030.00618.77
8.1.200.0070.00317.61
8.1.190.0040.00417.48
8.1.180.0040.00418.10
8.1.170.0030.00518.83
8.1.160.0000.00719.21
8.1.150.0040.00420.72
8.1.140.0030.00519.72
8.1.130.0000.00818.94
8.1.120.0030.00517.73
8.1.110.0000.00717.61
8.1.100.0000.00717.77
8.1.90.0000.00817.63
8.1.80.0100.00017.68
8.1.70.0070.00017.71
8.1.60.0000.00817.80
8.1.50.0050.00517.72
8.1.40.0000.00817.59
8.1.30.0000.00817.87
8.1.20.0040.00417.77
8.1.10.0040.00417.65
8.1.00.0000.00717.67
8.0.300.0040.00418.77
8.0.290.0000.00917.00
8.0.280.0070.00018.48
8.0.270.0000.00717.32
8.0.260.0060.00017.00
8.0.250.0000.00717.18
8.0.240.0070.00317.25
8.0.230.0070.00017.27
8.0.220.0070.00017.17
8.0.210.0020.00517.16
8.0.200.0020.00517.20
8.0.190.0050.00317.18
8.0.180.0050.00317.18
8.0.170.0090.00017.10
8.0.160.0000.00817.20
8.0.150.0050.00217.19
8.0.140.0040.00417.07
8.0.130.0000.00813.53
8.0.120.0080.00017.02
8.0.110.0040.00417.16
8.0.100.0060.00317.20
8.0.90.0040.00417.18
8.0.80.0140.00317.21
8.0.70.0050.00317.07
8.0.60.0030.00517.20
8.0.50.0000.00717.20
8.0.30.0070.01217.42
8.0.20.0090.01317.40
8.0.10.0060.00317.17
8.0.00.0090.00917.02
7.4.330.0000.00515.55
7.4.320.0000.00716.63
7.4.300.0000.00716.72
7.4.290.0030.00316.70
7.4.280.0000.00716.84
7.4.270.0080.00016.70
7.4.260.0070.00016.73
7.4.250.0030.00516.69
7.4.240.0000.00816.79
7.4.230.0040.00416.83
7.4.220.0060.01316.70
7.4.210.0060.00916.82
7.4.200.0050.00216.91
7.4.160.0090.00616.62
7.4.150.0080.00917.40
7.4.140.0120.00817.86
7.4.130.0120.00616.65
7.4.120.0160.00516.83
7.4.110.0140.00316.63
7.4.100.0060.01116.72
7.4.90.0100.00716.55
7.4.80.0080.01519.39
7.4.70.0090.01116.80
7.4.60.0150.00316.80
7.4.50.0030.01216.49
7.4.40.0130.01016.44
7.4.30.0130.00616.93
7.4.00.0090.00315.25
7.3.330.0000.00513.37
7.3.320.0060.00013.29
7.3.310.0080.00016.54
7.3.300.0000.00716.47
7.3.290.0040.00416.48
7.3.280.0070.00916.48
7.3.270.0090.00917.40
7.3.260.0110.00616.69
7.3.250.0080.01016.84
7.3.240.0120.00716.68
7.3.230.0030.01416.50
7.3.210.0100.00716.68
7.3.200.0110.00616.88
7.3.190.0180.00316.54
7.3.180.0140.00616.79
7.3.170.0080.00816.81
7.3.160.0060.01516.46
7.3.120.0120.00615.01
7.3.110.0150.00615.19
7.3.100.0040.01515.06
7.3.90.0040.01314.70
7.3.80.0050.00815.23
7.3.70.0070.00514.77
7.3.60.0170.00214.69
7.3.50.0110.00714.75
7.3.40.0060.00914.91
7.3.30.0120.00315.14
7.3.20.0100.01016.88
7.3.10.0100.00616.81
7.3.00.0080.01016.72
7.2.330.0130.00716.87
7.2.320.0160.00716.70
7.2.310.0040.01216.80
7.2.300.0110.01116.96
7.2.290.0100.01317.00
7.2.240.0100.00715.53
7.2.230.0070.01315.50
7.2.220.0110.00315.28
7.2.210.0070.01015.02
7.2.200.0060.01215.43
7.2.190.0140.01115.06
7.2.180.0030.01315.38
7.2.170.0060.01315.27
7.2.160.0060.00915.30
7.2.150.0080.00817.30
7.2.140.0090.00517.13
7.2.130.0080.01216.98
7.2.120.0110.00616.96
7.2.110.0110.00317.12
7.2.100.0100.00517.22
7.2.90.0100.00817.11
7.2.80.0060.01117.10
7.2.70.0080.01017.13
7.2.60.0520.00516.48
7.2.50.0090.00917.12
7.2.40.0110.00517.00
7.2.30.0090.00617.09
7.2.20.0020.01817.04
7.2.10.0060.01017.07
7.2.00.0070.01217.88
7.1.330.0040.01115.84
7.1.320.0070.01116.20
7.1.310.0130.00716.11
7.1.300.0090.00915.76
7.1.290.0100.00315.96
7.1.280.0030.00915.72
7.1.270.0100.00715.93
7.1.260.0040.01515.87
7.1.250.0040.01115.81
7.1.240.0030.01015.73
7.1.230.0100.00715.95
7.1.220.0060.01016.11
7.1.210.0030.01315.89
7.1.200.0050.00715.98
7.1.190.0060.00916.11
7.1.180.0040.00416.07
7.1.170.0060.01015.80
7.1.160.0030.01316.07
7.1.150.0030.01215.89
7.1.140.0080.00516.11
7.1.130.0040.00815.55
7.1.120.0060.01016.02
7.1.110.0130.00315.74
7.1.100.0050.01017.18
7.1.90.0100.00016.17
7.1.80.0060.00915.93
7.1.70.0100.01315.71
7.1.60.0300.01424.66
7.1.50.0310.01224.56
7.1.40.0220.01324.33
7.1.30.0270.01624.33
7.1.20.0240.01624.31
7.1.10.0160.01015.59
7.1.00.0100.01315.37
7.0.330.0080.00415.37
7.0.320.0030.00615.56
7.0.310.0060.00315.29
7.0.300.0030.00615.55
7.0.290.0090.00315.43
7.0.280.0070.01015.74
7.0.270.0040.00715.63
7.0.260.0100.00215.49
7.0.250.0040.00915.63
7.0.240.0140.00015.14
7.0.230.0130.00615.28
7.0.220.0040.01115.53
7.0.210.0060.01015.55
7.0.200.0170.00915.23
7.0.190.0210.00715.21
7.0.180.0140.01114.96
7.0.170.0150.00715.02
7.0.160.0110.01415.03
7.0.150.0150.00915.02
7.0.140.0140.01115.12
7.0.130.0200.00914.97
7.0.120.0100.01415.28
7.0.110.0130.01014.97
7.0.100.0150.01014.87
7.0.90.0160.00915.10
7.0.80.0170.00515.99
7.0.70.0070.00916.00
7.0.60.0090.00715.69
7.0.50.0050.00915.95
7.0.40.0120.00614.90
7.0.30.0100.01014.99
7.0.20.0190.01214.21
7.0.10.0160.01214.16
7.0.00.0150.01114.10
5.6.380.0080.00814.70

preferences:
39.68 ms | 400 KiB | 5 Q