3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = (new DateTime('1 year ago'))->modify('last day of this month'); $end = (new DateTime())->modify('first day of this month'); $interval = new DateInterval('P1M'); $period = new DatePeriod($start, $interval, $end); $months = array(); foreach ($period as $dt) { $months[$dt->format('Y-m-d')] = $dt->format('Y-m'); } $reverse_months = array_reverse($months); print_r($reverse_months);

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.0070.01416.25
8.3.50.0070.01221.38
8.3.40.0150.00618.96
8.3.30.0040.01118.95
8.3.20.0040.00420.13
8.3.10.0040.00423.48
8.3.00.0080.00017.91
8.2.180.0040.01118.51
8.2.170.0120.00322.96
8.2.160.0070.01020.38
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00417.88
8.2.110.0000.00919.33
8.2.100.0040.00818.06
8.2.90.0000.00819.30
8.2.80.0080.00017.97
8.2.70.0000.00817.75
8.2.60.0030.00718.05
8.2.50.0070.00318.10
8.2.40.0080.00019.34
8.2.30.0040.00720.71
8.2.20.0070.00418.00
8.2.10.0050.00218.26
8.2.00.0040.00418.13
8.1.280.0120.00625.92
8.1.270.0060.00323.96
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.19
8.1.230.0040.00717.94
8.1.220.0040.00417.93
8.1.210.0040.00418.77
8.1.200.0050.00517.38
8.1.190.0060.00317.47
8.1.180.0000.00818.10
8.1.170.0040.00418.76
8.1.160.0040.00422.08
8.1.150.0070.00019.01
8.1.140.0000.00819.76
8.1.130.0030.00617.74
8.1.120.0040.00417.68
8.1.110.0000.00717.58
8.1.100.0040.00417.72
8.1.90.0050.00217.62
8.1.80.0030.00317.73
8.1.70.0030.00517.67
8.1.60.0040.00417.66
8.1.50.0040.00417.60
8.1.40.0040.00717.73
8.1.30.0000.00817.83
8.1.20.0050.00217.71
8.1.10.0050.00317.80
8.1.00.0040.00417.76
8.0.300.0040.00420.18
8.0.290.0040.00416.88
8.0.280.0030.00318.54
8.0.270.0000.00717.40
8.0.260.0070.00017.39
8.0.250.0000.00817.23
8.0.240.0040.00417.12
8.0.230.0040.00417.21
8.0.220.0000.00717.11
8.0.210.0000.00717.20
8.0.200.0000.00717.11
8.0.190.0000.00917.25
8.0.180.0000.00717.01
8.0.170.0040.00417.08
8.0.160.0000.00817.29
8.0.150.0040.00417.01
8.0.140.0000.00817.11
8.0.130.0030.00313.55
8.0.120.0000.00817.02
8.0.110.0000.00717.20
8.0.100.0060.00316.95
8.0.90.0040.00416.98
8.0.80.0110.00617.10
8.0.70.0000.00717.27
8.0.60.0040.00417.12
8.0.50.0030.00517.02
8.0.30.0090.01117.40
8.0.20.0130.01017.45
8.0.10.0040.00417.17
8.0.00.0110.00916.91
7.4.330.0020.00215.28
7.4.320.0040.00416.63
7.4.300.0060.00016.57
7.4.290.0000.00716.60
7.4.280.0030.00516.84
7.4.270.0000.00716.70
7.4.260.0030.00316.65
7.4.250.0000.00716.76
7.4.240.0050.00216.77
7.4.230.0040.00416.76
7.4.220.0060.01216.73
7.4.210.0120.00816.66
7.4.200.0040.00416.83
7.4.160.0120.00416.71
7.4.150.0060.01317.40
7.4.140.0130.00817.86
7.4.130.0170.01016.80
7.4.120.0070.01016.74
7.4.110.0030.01616.77
7.4.100.0100.01416.86
7.4.90.0070.01016.79
7.4.80.0070.01019.39
7.4.70.0120.00616.68
7.4.60.0060.01316.78
7.4.50.0000.00816.58
7.4.40.0110.01116.76
7.4.30.0070.01116.73
7.4.00.0070.00715.16
7.3.330.0000.00613.32
7.3.320.0000.00513.43
7.3.310.0030.00316.36
7.3.300.0000.00716.56
7.3.290.0090.00816.54
7.3.280.0080.01116.54
7.3.270.0060.01117.40
7.3.260.0140.00316.63
7.3.240.0060.01316.56
7.3.230.0070.01016.68
7.3.210.0100.00716.65
7.3.200.0060.01616.73
7.3.190.0060.01016.67
7.3.180.0060.00916.73
7.3.170.0080.00816.69
7.3.160.0100.01016.84
7.3.10.0090.00916.93
7.3.00.0060.00316.96
7.2.330.0070.01116.94
7.2.320.0140.01016.93
7.2.310.0080.00816.96
7.2.300.0090.00617.01
7.2.290.0100.00716.82
7.2.130.0040.01416.93
7.2.120.0060.00916.91
7.2.110.0110.00317.16
7.2.100.0060.00917.10
7.2.90.0110.00717.29
7.2.80.0070.00717.10
7.2.70.0030.01217.29
7.2.60.0050.00817.16
7.2.50.0040.01017.32
7.2.40.0140.00317.30
7.2.30.0030.00917.25
7.2.20.0000.01317.13
7.2.10.0080.00416.94
7.2.00.0060.01118.45
7.1.250.0150.00015.72
7.1.200.0060.00315.79
7.1.100.0000.01118.38
7.1.70.0150.00417.14
7.1.60.0170.00719.50
7.1.50.0070.01416.85
7.1.00.0070.07722.43
7.0.200.0000.00816.65
7.0.60.0070.08319.93
7.0.50.0070.08317.93
7.0.40.0070.07720.07
7.0.30.0200.03720.09
7.0.20.0270.07720.01
7.0.10.0300.05720.13
7.0.00.0100.07720.33
5.6.280.0070.03021.02
5.6.210.0100.07720.66
5.6.200.0070.08318.22
5.6.190.0070.08320.46
5.6.180.0230.06020.40
5.6.170.0230.04020.39
5.6.160.0130.04720.61
5.6.150.0130.07318.13
5.6.140.0070.07318.21
5.6.130.0030.04318.09
5.6.120.0000.06021.02
5.6.110.0070.03721.11
5.6.100.0000.08321.04
5.6.90.0030.06021.03
5.6.80.0030.07320.41
5.6.70.0330.06320.36
5.5.350.0270.04020.40
5.5.340.0000.05317.93
5.5.330.0130.06020.23
5.5.320.0030.04720.39
5.5.310.0230.03720.21
5.5.300.0030.05317.91
5.5.290.0030.09017.91
5.5.280.0030.04020.82
5.5.270.0070.04020.75
5.5.260.0070.05020.94
5.5.250.0030.04020.63
5.5.240.0070.05720.06
5.4.450.0870.06319.45
5.4.440.0900.06719.55
5.4.430.0970.05319.62
5.4.420.0830.05319.12
5.4.410.0870.06719.38
5.4.400.0900.06319.16
5.4.390.0970.06019.09
5.4.380.0800.06319.12
5.4.370.0830.06018.94
5.4.360.0870.06318.95
5.4.350.0730.06318.78
5.4.340.0800.07018.81
5.4.320.0800.07019.14
5.4.310.0730.07019.18
5.4.300.0900.04719.09
5.4.290.0770.05719.07
5.4.280.0700.05019.16
5.4.270.0600.06019.21
5.4.260.0700.05319.00
5.4.250.0730.05718.80
5.4.240.0800.06319.25
5.4.230.0870.07718.91
5.4.220.1000.06319.14
5.4.210.0800.06719.24
5.4.200.0730.07018.94
5.4.190.0800.07019.29
5.4.180.0700.06719.08
5.4.170.0930.05719.14
5.4.160.0830.06019.21
5.4.150.0770.07719.14
5.4.140.0700.06316.19
5.4.130.0670.07316.48
5.4.120.0830.06016.35
5.4.110.0800.05716.52
5.4.100.0600.06716.12
5.4.90.0670.06716.56
5.4.80.0670.06016.33
5.4.70.0700.05316.38
5.4.60.0730.04316.50
5.4.50.0830.05016.53
5.4.40.0700.05016.53
5.4.30.0730.07016.43
5.4.20.0700.04716.48
5.4.10.0600.05316.43
5.4.00.0670.06315.71

preferences:
53.55 ms | 401 KiB | 5 Q