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('last 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.0150.00616.75
8.3.50.0090.00721.15
8.3.40.0190.00018.93
8.3.30.0090.00618.91
8.3.20.0000.00720.31
8.3.10.0050.00323.48
8.3.00.0050.00317.93
8.2.180.0150.00018.54
8.2.170.0090.00622.96
8.2.160.0030.01320.35
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0030.00617.86
8.2.110.0060.00320.27
8.2.100.0060.00618.09
8.2.90.0030.00619.53
8.2.80.0000.00817.97
8.2.70.0000.00817.88
8.2.60.0000.00818.05
8.2.50.0030.00718.10
8.2.40.0050.00319.15
8.2.30.0080.00420.68
8.2.20.0000.01017.91
8.2.10.0000.00718.31
8.2.00.0040.00418.22
8.1.280.0120.00625.92
8.1.270.0110.00723.78
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00622.59
8.1.230.0110.00017.89
8.1.220.0060.00317.77
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0030.00517.48
8.1.180.0040.00418.10
8.1.170.0030.00518.83
8.1.160.0070.00021.96
8.1.150.0030.00519.05
8.1.140.0040.00419.70
8.1.130.0040.00417.92
8.1.120.0030.00517.75
8.1.110.0000.00817.73
8.1.100.0000.00717.70
8.1.90.0030.00517.70
8.1.80.0050.00317.63
8.1.70.0000.00717.59
8.1.60.0040.00417.81
8.1.50.0000.00717.63
8.1.40.0060.00317.72
8.1.30.0060.00317.87
8.1.20.0000.00717.83
8.1.10.0070.00017.74
8.1.00.0050.00317.80
8.0.300.0060.00318.77
8.0.290.0000.00817.00
8.0.280.0030.00318.59
8.0.270.0030.00317.41
8.0.260.0000.00617.29
8.0.250.0000.00717.11
8.0.240.0040.00417.12
8.0.230.0050.00217.10
8.0.220.0000.00717.02
8.0.210.0000.00817.16
8.0.200.0000.00617.15
8.0.190.0050.00317.17
8.0.180.0000.00717.20
8.0.170.0000.00817.18
8.0.160.0030.00517.05
8.0.150.0000.00717.12
8.0.140.0000.00717.14
8.0.130.0030.00313.47
8.0.120.0000.00817.14
8.0.110.0070.00017.10
8.0.100.0000.00717.10
8.0.90.0000.00817.05
8.0.80.0030.01417.19
8.0.70.0040.00417.09
8.0.60.0000.00717.20
8.0.50.0070.00017.12
8.0.30.0120.00617.24
8.0.20.0110.01017.44
8.0.10.0140.00717.27
8.0.00.0130.00917.07
7.4.330.0030.00315.12
7.4.320.0030.00316.80
7.4.300.0030.00316.66
7.4.290.0070.00016.66
7.4.280.0050.00316.70
7.4.270.0020.00516.82
7.4.260.0030.00316.83
7.4.250.0040.00416.81
7.4.240.0020.00516.76
7.4.230.0050.00216.83
7.4.220.0090.01216.60
7.4.210.0140.00016.86
7.4.200.0040.00416.70
7.4.160.0120.00616.92
7.4.150.0090.00917.40
7.4.140.0140.01017.50
7.4.130.0130.00916.76
7.4.120.0060.01216.69
7.4.110.0170.01216.79
7.4.100.0120.00616.72
7.4.90.0120.00916.82
7.4.80.0140.00518.08
7.4.70.0110.00816.74
7.4.60.0080.01116.75
7.4.50.0090.00416.70
7.4.40.0150.00516.90
7.4.30.0140.00516.63
7.4.20.0170.00616.82
7.4.10.0060.01516.88
7.4.00.0110.01115.98
7.3.330.0000.00513.24
7.3.320.0030.00313.50
7.3.310.0030.00316.63
7.3.300.0000.00716.44
7.3.290.0060.00916.50
7.3.280.0110.00616.58
7.3.270.0100.01317.40
7.3.260.0100.00816.61
7.3.250.0100.00816.80
7.3.240.0140.00916.63
7.3.230.0150.00616.63
7.3.220.0100.01516.65
7.3.210.0140.00516.53
7.3.200.0060.01216.64
7.3.190.0060.01116.70
7.3.180.0120.00616.55
7.3.170.0100.00916.57
7.3.160.0060.01116.61
7.3.150.0160.00316.60
7.3.140.0090.00916.79
7.3.130.0150.00316.56
7.3.120.0150.00616.56
7.3.110.0130.01016.80
7.3.100.0260.00916.70
7.3.90.0260.00716.61
7.3.80.0090.01216.56
7.3.70.0130.00916.57
7.3.60.0110.01116.62
7.3.50.0140.01116.39
7.3.40.0240.00716.63
7.3.30.0070.01416.64
7.3.20.0210.00716.62
7.3.10.0140.01316.59
7.3.00.0140.01016.62
7.2.340.0390.02316.83
7.2.330.0140.01316.92
7.2.320.0190.01016.85
7.2.310.0210.01416.91
7.2.300.0130.01316.92
7.2.290.0140.01217.07
7.2.280.0290.00416.80
7.2.270.0240.01116.90
7.2.260.0250.00816.93
7.2.250.0260.01316.80
7.2.240.0250.01816.75
7.2.230.0300.00416.86
7.2.220.0250.00816.72
7.2.210.0230.01016.75
7.2.200.0240.00716.61
7.2.190.0270.00516.80
7.2.180.0210.01416.93
7.2.170.0230.01316.92
7.2.160.0240.00716.85
7.2.150.0300.00416.93
7.2.140.0270.00817.00
7.2.130.0130.01516.99
7.2.120.0210.01117.14
7.2.110.0220.00616.78
7.2.100.0240.00816.81
7.2.90.0200.01016.76
7.2.80.0170.01316.77
7.2.70.0190.01216.53
7.2.60.0170.00916.82
7.2.50.0220.00816.80
7.2.40.0220.01016.59
7.2.30.0180.01016.70
7.2.20.0180.00916.94
7.2.10.0130.01516.64
7.2.00.0170.00717.93
7.1.330.0220.01315.95
7.1.320.0380.01015.90
7.1.310.0290.00315.89
7.1.300.0310.00015.83
7.1.290.0160.01515.86
7.1.280.0260.00515.74
7.1.270.0300.01015.96
7.1.260.0320.00915.83
7.1.250.0150.01315.65
7.1.240.0270.00915.95
7.1.230.0220.01015.80
7.1.220.0210.01015.77
7.1.210.0220.00915.60
7.1.200.0160.00715.83
7.1.190.0180.01115.79
7.1.180.0210.00715.60
7.1.170.0200.01315.69
7.1.160.0300.01715.95
7.1.150.0230.01015.98
7.1.140.0260.01015.76
7.1.130.0220.00915.86
7.1.120.0230.01415.77
7.1.110.0330.00015.68
7.1.100.0160.01017.11
7.1.90.0190.01115.88
7.1.80.0200.01215.89
7.1.70.0180.00216.57
7.1.60.0150.01116.73
7.1.50.0130.01316.66
7.1.40.0170.00616.44
7.1.30.0140.00616.44
7.1.20.0140.01016.52
7.1.10.0090.00916.31
7.1.00.0130.01516.38
7.0.330.0690.00715.21
7.0.320.0140.01415.55
7.0.310.0400.00315.33
7.0.300.0230.00715.36
7.0.290.0150.01815.41
7.0.280.0200.01215.54
7.0.270.0170.01715.45
7.0.260.0210.00915.31
7.0.250.0290.00315.37
7.0.240.0260.01015.54
7.0.230.0230.01015.29
7.0.220.0200.01015.52
7.0.210.0250.00715.55
7.0.200.0100.01416.01
7.0.190.0170.00816.13
7.0.180.0150.00916.07
7.0.170.0120.00816.09
7.0.160.0130.01016.07
7.0.150.0130.00515.97
7.0.140.0180.00515.96
7.0.130.0150.00916.01
7.0.120.0110.00916.06
7.0.110.0140.00716.05
7.0.100.0100.01515.92
7.0.90.0120.01016.02
7.0.80.0100.00915.91
7.0.70.0140.01015.99
7.0.60.0120.00915.89
7.0.50.0130.00816.07
7.0.40.0120.00815.10
7.0.30.0330.00615.14
7.0.20.0130.00515.09
7.0.10.0110.00815.13
7.0.00.0140.00615.12
5.6.400.0220.01016.37
5.6.390.0210.01516.30
5.6.380.0220.01516.16
5.6.370.0150.01516.15
5.6.360.0230.01416.34
5.6.350.0160.02016.21
5.6.340.0180.01416.13
5.6.330.0180.01516.38
5.6.320.0260.01216.00
5.6.310.0140.02016.20
5.6.300.0130.02518.42
5.6.290.0170.03518.54
5.6.280.0170.04518.66
5.6.270.0150.02318.47
5.6.260.0120.02618.60
5.6.250.0080.03718.54
5.6.240.0100.03818.51
5.6.230.0160.04118.55
5.6.220.0120.04218.42
5.6.210.0180.02818.52
5.6.200.0170.02518.61
5.6.190.0130.03018.60
5.6.180.0120.03018.47
5.6.170.0140.04318.51
5.6.160.0130.02818.52
5.6.150.0130.04118.46
5.6.140.0140.02718.50
5.6.130.0160.04518.56
5.6.120.0160.03718.58
5.6.110.0100.03318.56
5.6.100.0150.02518.61
5.6.90.0140.02818.40
5.6.80.0120.04918.27
5.6.70.0110.02418.04
5.6.60.0130.03418.29
5.6.50.0130.04118.15
5.6.40.0130.02518.08
5.6.30.0110.02418.19
5.6.20.0120.03518.20
5.6.10.0150.04418.28
5.6.00.0080.02818.09
5.5.380.0090.05116.79
5.5.370.0130.03016.82
5.5.360.0140.02716.96
5.5.350.0130.02816.75
5.5.340.0150.02516.91
5.5.330.0140.02817.04
5.5.320.0120.02717.07
5.5.310.0150.04416.97
5.5.300.0140.03217.03
5.5.290.0140.04716.89
5.5.280.0140.03017.11
5.5.270.0150.03817.02
5.5.260.0180.04717.09
5.5.250.0150.04316.84
5.5.240.0130.03216.60
5.5.230.0190.02716.76
5.5.220.0140.04516.57
5.5.210.0180.04116.68
5.5.200.0090.03616.67
5.5.190.0140.02916.58
5.5.180.0100.02616.73
5.5.170.0220.01316.21
5.5.160.0130.02416.64
5.5.150.0110.03516.51
5.5.140.0050.03316.68
5.5.130.0120.03116.64
5.5.120.0170.03416.66
5.5.110.0110.02616.67
5.5.100.0100.02716.84
5.5.90.0120.02516.51
5.5.80.0170.02216.63
5.5.70.0130.02416.46
5.5.60.0170.02616.60
5.5.50.0070.03716.52
5.5.40.0180.02516.63
5.5.30.0100.04816.69
5.5.20.0160.03816.68
5.5.10.0110.04716.64
5.5.00.0120.03616.63
5.4.450.0100.04816.12
5.4.440.0120.04616.07
5.4.430.0100.04916.03
5.4.420.0120.02315.95
5.4.410.0110.03016.21
5.4.400.0090.02315.87
5.4.390.0090.02515.92
5.4.380.0130.04315.78
5.4.370.0110.02215.83
5.4.360.0090.02715.81
5.4.350.0080.04315.86
5.4.340.0110.02315.84
5.4.330.0120.00912.58
5.4.320.0130.02115.92
5.4.310.0120.02015.77
5.4.300.0100.02915.89
5.4.290.0090.03815.87
5.4.280.0100.04215.89
5.4.270.0110.02415.85
5.4.260.0090.02416.01
5.4.250.0090.04215.79
5.4.240.0130.02415.85
5.4.230.0080.02515.97
5.4.220.0100.03415.78
5.4.210.0090.04115.95
5.4.200.0120.02215.90
5.4.190.0100.02415.83
5.4.180.0110.04616.01
5.4.170.0120.02815.96
5.4.160.0120.02415.93
5.4.150.0130.03315.85
5.4.140.0130.03814.67
5.4.130.0070.04914.61
5.4.120.0130.03514.64
5.4.110.0140.03614.66
5.4.100.0130.03814.68
5.4.90.0150.03414.67
5.4.80.0120.04114.73
5.4.70.0090.04314.60
5.4.60.0090.04114.77
5.4.50.0160.02414.66
5.4.40.0090.02614.74
5.4.30.0150.02214.71
5.4.20.0110.01914.66
5.4.10.0110.02014.51
5.4.00.0090.03114.45

preferences:
42.86 ms | 401 KiB | 5 Q