3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2016-12-02'); $start->modify('first day of this month'); $end = new DateTime('2018-01-01'); $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("F '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.0140.00718.49
8.3.50.0000.01416.54
8.3.40.0100.01318.78
8.3.30.0100.00718.82
8.3.20.0070.00020.16
8.3.10.0080.00021.90
8.3.00.0050.00320.84
8.2.180.0110.00718.43
8.2.170.0210.00022.96
8.2.160.0070.00722.22
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00422.24
8.2.120.0040.00426.35
8.2.110.0040.00420.54
8.2.100.0040.00718.16
8.2.90.0050.00319.34
8.2.80.0040.00418.05
8.2.70.0050.00317.75
8.2.60.0000.00817.93
8.2.50.0000.00918.10
8.2.40.0030.00622.30
8.2.30.0080.00019.38
8.2.20.0000.00918.17
8.2.10.0050.00218.20
8.2.00.0030.00518.11
8.1.280.0120.00925.92
8.1.270.0070.00022.23
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00020.88
8.1.230.0080.00419.09
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00917.63
8.1.190.0030.00517.25
8.1.180.0000.00818.10
8.1.170.0040.00418.79
8.1.160.0040.00419.06
8.1.150.0000.00719.03
8.1.140.0000.00819.72
8.1.130.0030.00319.03
8.1.120.0050.00317.66
8.1.110.0040.00417.79
8.1.100.0000.00717.71
8.1.90.0040.00417.72
8.1.80.0040.00417.72
8.1.70.0030.00317.72
8.1.60.0000.00717.68
8.1.50.0000.00817.75
8.1.40.0030.00517.65
8.1.30.0080.00017.86
8.1.20.0030.00617.83
8.1.10.0050.00317.68
8.1.00.0050.00317.79
8.0.300.0040.00418.77
8.0.290.0060.00316.88
8.0.280.0080.00018.46
8.0.270.0000.00717.32
8.0.260.0030.00317.05
8.0.250.0070.00017.26
8.0.240.0000.00717.00
8.0.230.0030.00717.22
8.0.220.0080.00017.21
8.0.210.0030.00317.09
8.0.200.0000.00817.26
8.0.190.0030.00517.25
8.0.180.0040.00417.14
8.0.170.0040.00417.20
8.0.160.0030.00617.17
8.0.150.0050.00317.09
8.0.140.0040.00417.14
8.0.130.0040.00413.45
8.0.120.0000.00817.08
8.0.110.0040.00417.18
8.0.100.0040.00417.16
8.0.90.0000.00817.13
8.0.80.0090.00617.12
8.0.70.0070.00017.18
8.0.60.0020.00517.10
8.0.50.0040.00417.04
8.0.30.0050.01317.29
8.0.20.0120.00717.45
8.0.10.0030.00317.24
8.0.00.0150.00817.07
7.4.330.0000.00515.55
7.4.320.0060.00016.72
7.4.300.0040.00416.70
7.4.290.0080.00016.57
7.4.280.0040.00416.66
7.4.270.0030.00316.79
7.4.260.0050.00516.73
7.4.250.0000.00716.61
7.4.240.0000.00716.74
7.4.230.0000.00616.55
7.4.220.0100.01716.74
7.4.210.0080.01116.80
7.4.200.0000.00816.83
7.4.160.0080.00916.68
7.4.150.0160.01017.40
7.4.140.0100.00817.86
7.4.130.0090.01316.85
7.4.120.0110.00916.70
7.4.110.0070.01616.47
7.4.100.0150.00616.71
7.4.90.0100.00716.76
7.4.80.0120.00619.39
7.4.70.0090.00916.63
7.4.60.0030.01416.57
7.4.50.0120.00316.69
7.4.40.0180.00016.61
7.4.30.0060.01016.72
7.4.00.0030.01015.28
7.3.330.0030.00313.37
7.3.320.0000.00613.25
7.3.310.0000.00716.47
7.3.300.0030.00316.45
7.3.290.0030.00316.47
7.3.280.0090.00816.47
7.3.270.0030.02017.40
7.3.260.0090.00816.55
7.3.250.0110.00716.58
7.3.240.0100.00716.57
7.3.230.0030.01316.59
7.3.210.0030.01316.51
7.3.200.0030.01416.59
7.3.190.0000.01616.42
7.3.180.0090.00616.66
7.3.170.0120.00416.57
7.3.160.0090.01316.64
7.2.330.0140.00416.90
7.2.320.0110.00816.89
7.2.310.0080.00817.00
7.2.300.0100.01416.95
7.2.290.0140.00916.59
7.2.90.1150.00315.16
7.2.80.0160.00615.04
7.2.70.0600.01315.34
7.2.60.0110.00415.44
7.2.50.0060.01215.23
7.2.40.0300.00815.37
7.2.30.1700.01015.30
7.2.20.0090.00915.15
7.2.10.1150.00315.15
7.2.00.1300.01315.52
7.1.210.1100.00714.08
7.1.200.0450.00313.96
7.1.190.0970.01014.09
7.1.180.0100.00714.07
7.1.170.0250.00313.91
7.1.160.0310.01014.13
7.1.150.0480.00913.89
7.1.140.0590.01013.76
7.1.130.0940.01013.98
7.1.120.1080.00614.24
7.1.110.0980.01014.12
7.1.100.0400.00414.24
7.1.90.0000.01714.20
7.1.80.0130.00313.96
7.1.70.0140.00814.11
7.1.60.2470.00632.03
7.1.50.0290.01232.14
7.1.40.0510.00031.79
7.1.30.0310.00632.14
7.1.20.1480.00631.95
7.1.10.0510.00013.80
7.1.00.0100.01313.98
7.0.310.0090.01013.90
7.0.300.0070.00713.77
7.0.290.0990.00613.63
7.0.280.0060.00613.47
7.0.270.1310.00613.92
7.0.260.1200.01313.89
7.0.250.0690.00613.85
7.0.240.0110.00813.54
7.0.230.0110.00613.91
7.0.220.0950.00313.79
7.0.210.0090.00413.77
7.0.200.0610.00313.74
7.0.190.1710.00313.64
7.0.180.1030.00313.70
7.0.170.1440.01013.61
7.0.160.1200.00613.91
7.0.150.0040.00913.61
7.0.140.0180.00613.83
7.0.130.0390.00313.75
7.0.120.0340.00913.49
7.0.110.0060.01313.57
7.0.100.0120.00813.89
7.0.90.0070.01013.66
7.0.80.0880.00313.81
7.0.70.0080.00513.65
7.0.60.0120.00813.50
7.0.50.0270.00713.84
7.0.40.0090.00814.02
7.0.30.0120.00013.83
7.0.20.0070.00713.96
7.0.10.0330.00713.71
7.0.00.1330.00313.67

preferences:
88.02 ms | 400 KiB | 5 Q