3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array=Array ( '0' => 2, '1' => 1, '2' => 3, '3' => 5, '4' => 1, '5' => 2, '6' => 1, '7' => 4, '8' => 2 ); print_r(array_reverse(array_unique(array_reverse($array))));

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.0190.00018.23
8.3.50.0080.01121.09
8.3.40.0140.00418.72
8.3.30.0000.01320.17
8.3.20.0000.00720.07
8.3.10.0020.00520.95
8.3.00.0070.00022.46
8.2.180.0100.00716.38
8.2.170.0070.01122.96
8.2.160.0030.01022.26
8.2.150.0140.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00819.64
8.2.110.0060.00321.04
8.2.100.0080.00417.78
8.2.90.0070.00419.22
8.2.80.0000.00719.28
8.2.70.0000.00817.25
8.2.60.0050.00317.55
8.2.50.0080.00018.07
8.2.40.0000.00718.22
8.2.30.0040.00417.97
8.2.20.0040.00417.45
8.2.10.0040.00417.53
8.2.00.0000.01117.60
8.1.280.0060.00825.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00422.34
8.1.230.0060.00620.87
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0060.00617.23
8.1.190.0050.00317.26
8.1.180.0050.00318.10
8.1.170.0030.00618.91
8.1.160.0040.00418.74
8.1.150.0060.00318.47
8.1.140.0050.00217.27
8.1.130.0000.00717.81
8.1.120.0000.00717.32
8.1.110.0030.00517.45
8.1.100.0040.00417.41
8.1.90.0000.00817.27
8.1.80.0040.00417.43
8.1.70.0000.00717.33
8.1.60.0040.00417.54
8.1.50.0050.00317.32
8.1.40.0040.00417.42
8.1.30.0040.00417.53
8.1.20.0000.00917.54
8.1.10.0070.00017.38
8.1.00.0040.00417.41
8.0.300.0000.00719.90
8.0.290.0000.00716.58
8.0.280.0080.00018.33
8.0.270.0030.00317.24
8.0.260.0060.00016.75
8.0.250.0030.00716.91
8.0.240.0080.00016.77
8.0.230.0000.00816.78
8.0.220.0080.00016.77
8.0.210.0050.00316.73
8.0.200.0030.00316.86
8.0.190.0050.00216.82
8.0.180.0030.00316.89
8.0.170.0000.00916.89
8.0.160.0030.00316.76
8.0.150.0040.00416.64
8.0.140.0040.00416.66
8.0.130.0070.00013.30
8.0.120.0030.00516.73
8.0.110.0030.00516.68
8.0.100.0030.00616.51
8.0.90.0000.00716.88
8.0.80.0130.00816.81
8.0.70.0000.00816.80
8.0.60.0000.00816.68
8.0.50.0070.00016.67
8.0.30.0120.00917.02
8.0.20.0130.00617.40
8.0.10.0040.00416.90
8.0.00.0060.01816.73
7.4.330.0060.00016.76
7.4.320.0030.00316.48
7.4.300.0030.00316.54
7.4.290.0000.00816.47
7.4.280.0070.00016.45
7.4.270.0040.00416.53
7.4.260.0030.00313.18
7.4.250.0070.00016.33
7.4.240.0000.00716.44
7.4.230.0000.00716.59
7.4.220.0210.00316.51
7.4.210.0090.00816.51
7.4.200.0030.00316.56
7.4.190.0030.00316.46
7.4.160.0150.00616.25
7.4.150.0150.00317.40
7.4.140.0140.00317.86
7.4.130.0080.01016.41
7.4.120.0110.00816.50
7.4.110.0050.01416.31
7.4.100.0120.00616.40
7.4.90.0140.00316.37
7.4.80.0100.00719.39
7.4.70.0100.00716.23
7.4.60.0120.01016.36
7.4.50.0080.00016.16
7.4.40.0050.00822.77
7.4.30.0110.00816.54
7.4.00.0030.01214.93
7.3.330.0000.00512.97
7.3.320.0030.00313.05
7.3.310.0000.00715.99
7.3.300.0000.00616.13
7.3.290.0080.00616.22
7.3.280.0060.01016.14
7.3.270.0060.00917.40
7.3.260.0140.00418.24
7.3.250.0070.01216.30
7.3.240.0070.01016.45
7.3.230.0030.01316.39
7.3.210.0090.00616.10
7.3.200.0060.01219.39
7.3.190.0140.00716.36
7.3.180.0060.01116.09
7.3.170.0150.00016.27
7.3.160.0150.00516.11
7.3.120.0110.00414.40
7.2.330.0140.00316.52
7.2.320.0120.00916.48
7.2.310.0110.00716.53
7.2.300.0070.01116.44
7.2.290.0130.00316.50
7.2.00.0070.01019.06
7.1.100.0320.00416.97
7.1.70.0000.01016.89
7.1.60.0070.01819.17
7.1.50.0030.01816.94
7.1.00.0030.03322.44
7.0.200.0030.00616.65
7.0.140.0100.07021.96
7.0.60.0100.08319.97
7.0.50.0030.05017.86
7.0.40.0030.04720.04
7.0.30.0130.07720.24
7.0.20.0270.04720.24
7.0.10.0330.07720.24
7.0.00.0030.04020.05
5.6.280.0000.07321.11
5.6.210.0070.08720.68
5.6.200.0070.05018.20
5.6.190.0030.07320.60
5.6.180.0230.03720.55
5.6.170.0230.08320.46
5.6.160.0070.05320.44
5.6.150.0070.06718.19
5.6.140.0070.08018.17
5.6.130.0070.08318.23
5.6.120.0030.08021.14
5.6.110.0070.06720.96
5.6.100.0000.04321.02
5.6.90.0230.07020.98
5.6.80.0170.07020.29
5.6.70.3070.03320.38
5.5.350.0070.07320.32
5.5.340.0070.07718.02
5.5.330.0070.07320.27
5.5.320.0330.08020.41
5.5.310.0300.07320.29
5.5.300.0000.05317.98
5.5.290.0070.05717.98
5.5.280.0070.04720.86
5.5.270.0130.07320.89
5.5.260.0100.08020.86
5.5.250.0000.08020.58
5.5.240.0030.06020.26
5.4.450.0100.07319.46
5.4.440.0070.05319.63
5.4.430.0030.03719.40
5.4.420.0070.06719.54
5.4.410.0100.03319.14
5.4.400.0000.04319.23
5.4.390.0070.07719.21
5.4.380.0100.06019.09
5.4.370.0000.05019.09
5.4.360.0000.06319.16
5.4.350.0030.03719.24
5.4.340.0030.03719.21
5.4.320.0030.07719.22
5.4.310.0070.07019.17
5.4.300.0030.05319.31
5.4.290.0030.07719.09
5.4.280.0030.07319.02
5.4.270.0000.07718.98
5.4.260.0070.07019.08
5.4.250.0070.05319.08
5.4.240.0030.07318.97
5.4.230.0000.07319.19
5.4.220.0030.06018.86
5.4.210.0030.04719.05
5.4.200.0030.07019.15
5.4.190.0100.04019.07
5.4.180.0070.07319.21
5.4.170.0030.04719.07
5.4.160.0070.06719.04
5.4.150.0000.08319.08
5.4.140.0000.06716.31
5.4.130.0030.05716.35
5.4.120.0070.06716.37
5.4.110.0030.06716.19
5.4.100.0070.07316.47
5.4.90.0030.05016.45
5.4.80.0030.07316.35
5.4.70.0070.07016.36
5.4.60.0000.07716.38
5.4.50.0000.04716.16
5.4.40.0030.07316.51
5.4.30.0030.06016.34
5.4.20.0030.06016.48
5.4.10.0000.03716.51
5.4.00.0100.06715.78
5.3.290.0030.05014.67
5.3.280.0000.05314.80
5.3.270.0070.07714.68
5.3.260.0030.05314.57
5.3.250.0030.06314.59
5.3.240.0000.07714.75
5.3.230.0030.06314.61
5.3.220.0000.08014.78
5.3.210.0100.06714.71
5.3.200.0000.07714.71
5.3.190.0030.06714.46
5.3.180.0030.04314.46
5.3.170.0070.04014.45
5.3.160.0030.04714.63
5.3.150.0070.03314.46
5.3.140.0070.07014.55
5.3.130.0070.08014.59
5.3.120.0070.07714.51
5.3.110.0130.03314.70
5.3.100.0000.03714.00
5.3.90.0030.07313.98
5.3.80.0030.06014.23
5.3.70.0270.04014.13
5.3.60.0100.03714.02
5.3.50.0130.04713.94
5.3.40.0030.04313.84
5.3.30.0030.06314.06
5.3.20.0000.07713.80
5.3.10.0000.06013.81
5.3.00.0000.03713.80
5.2.170.0030.03313.80
5.2.160.0000.05013.80
5.2.150.0030.06313.80
5.2.140.0000.04013.80
5.2.130.0030.04713.80
5.2.120.0030.04713.80
5.2.110.0030.06713.80
5.2.100.0030.05713.80
5.2.90.0070.05713.80
5.2.80.0000.05013.80
5.2.70.0030.06013.80
5.2.60.0030.05713.80
5.2.50.0030.05713.80
5.2.40.0070.04013.80
5.2.30.0000.06313.80
5.2.20.0000.06313.80
5.2.10.0070.03713.80
5.2.00.0030.03713.80
5.1.60.0030.05013.80
5.1.50.0000.05713.80
5.1.40.0000.03313.80
5.1.30.0030.04013.80
5.1.20.0070.04713.80
5.1.10.0000.04013.80
5.1.00.0070.05313.80
5.0.50.0030.04313.80
5.0.40.0030.04713.80
5.0.30.0030.06313.80
5.0.20.0030.03313.80
5.0.10.0000.04313.80
5.0.00.0030.04313.80
4.4.90.0000.03713.80
4.4.80.0000.03713.80
4.4.70.0000.03313.80
4.4.60.0000.03013.80
4.4.50.0000.02713.80
4.4.40.0030.05013.80
4.4.30.0000.02313.80
4.4.20.0030.02013.80
4.4.10.0000.04013.80
4.4.00.0000.04013.80
4.3.110.0030.02713.80
4.3.100.0000.02713.80
4.3.90.0000.03013.80
4.3.80.0000.05713.80
4.3.70.0000.02313.80
4.3.60.0070.01713.80
4.3.50.0070.03013.80
4.3.40.0000.04313.80
4.3.30.0070.02713.80
4.3.20.0070.03313.80
4.3.10.0000.03013.80
4.3.00.0100.03013.80

preferences:
38.12 ms | 401 KiB | 5 Q