3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = array("management red", "red" , "management", "management", "red" , "management"); $result = array_unique($input); print_r($result); ?>

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.0000.01418.43
8.3.50.0140.00822.76
8.3.40.0110.00418.76
8.3.30.0130.00318.56
8.3.20.0080.00021.88
8.3.10.0050.00323.64
8.3.00.0080.00019.59
8.2.180.0140.00718.09
8.2.170.0150.00622.96
8.2.160.0110.00420.95
8.2.150.0090.00924.18
8.2.140.0070.00724.66
8.2.130.0080.00022.30
8.2.120.0070.00026.35
8.2.110.0050.00521.10
8.2.100.0040.00718.03
8.2.90.0050.00319.23
8.2.80.0080.00017.97
8.2.70.0030.00617.50
8.2.60.0040.00417.91
8.2.50.0030.00618.10
8.2.40.0080.00022.45
8.2.30.0030.00521.04
8.2.20.0020.00517.61
8.2.10.0030.00518.05
8.2.00.0000.00818.09
8.1.280.0100.00325.92
8.1.270.0080.00823.91
8.1.260.0070.00028.09
8.1.250.0000.00728.09
8.1.240.0050.00322.13
8.1.230.0070.00419.54
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0060.00618.65
8.1.160.0040.00422.13
8.1.150.0000.00720.89
8.1.140.0040.00419.61
8.1.130.0050.00317.67
8.1.120.0030.00317.42
8.1.110.0000.00817.34
8.1.100.0040.00717.39
8.1.90.0000.00717.34
8.1.80.0070.00317.23
8.1.70.0030.00317.36
8.1.60.0060.00317.40
8.1.50.0060.00317.45
8.1.40.0040.00417.48
8.1.30.0030.00617.50
8.1.20.0040.00417.61
8.1.10.0000.00717.43
8.1.00.0050.00317.30
8.0.300.0070.00018.77
8.0.290.0060.00316.75
8.0.280.0080.00018.38
8.0.270.0000.00817.19
8.0.260.0050.00317.12
8.0.250.0000.00716.83
8.0.240.0080.00016.86
8.0.230.0070.00016.87
8.0.220.0040.00416.77
8.0.210.0000.00716.70
8.0.200.0030.00616.77
8.0.190.0040.00416.75
8.0.180.0000.00716.73
8.0.170.0000.00716.91
8.0.160.0030.00316.83
8.0.150.0040.00416.79
8.0.140.0000.00716.66
8.0.130.0000.00513.24
8.0.120.0040.00416.70
8.0.110.0040.00416.74
8.0.100.0050.00316.77
8.0.90.0040.00416.92
8.0.80.0090.00616.82
8.0.70.0030.00616.79
8.0.60.0000.00716.68
8.0.50.0000.00816.62
8.0.30.0130.00616.74
8.0.20.0090.01017.40
8.0.10.0000.00816.82
8.0.00.0090.00916.49
7.4.330.0030.00315.08
7.4.320.0060.00016.33
7.4.300.0060.00016.38
7.4.290.0070.00016.52
7.4.280.0060.00016.53
7.4.270.0000.00716.35
7.4.260.0000.00716.32
7.4.250.0040.00416.48
7.4.240.0000.00716.45
7.4.230.0030.00316.43
7.4.220.0060.01316.46
7.4.210.0100.01016.64
7.4.200.0050.00216.55
7.4.160.0100.00516.48
7.4.150.0160.00017.40
7.4.140.0140.01117.86
7.4.130.0100.00816.39
7.4.120.0140.00316.58
7.4.110.0100.00716.39
7.4.100.0090.00916.46
7.4.90.0080.01216.17
7.4.80.0090.00619.39
7.4.70.0100.00616.45
7.4.60.0070.01416.45
7.4.50.0040.01416.29
7.4.40.0150.00916.43
7.4.30.0130.00316.30
7.4.10.0090.00414.99
7.4.00.0080.00714.82
7.3.330.0030.00312.97
7.3.320.0030.00312.87
7.3.310.0030.00616.20
7.3.300.0040.00416.20
7.3.290.0070.00816.13
7.3.280.0070.00816.12
7.3.270.0090.00917.40
7.3.260.0090.00916.52
7.3.250.0110.00816.20
7.3.240.0060.01216.15
7.3.230.0130.00316.39
7.3.210.0210.01716.07
7.3.200.0100.01316.32
7.3.190.0110.00716.36
7.3.180.0100.00716.50
7.3.170.0090.01316.25
7.3.160.0060.01016.13
7.3.130.0000.01714.58
7.3.120.0040.01214.39
7.3.110.0120.00314.46
7.3.100.0040.01514.74
7.3.90.0100.00714.68
7.3.80.0000.01014.43
7.3.70.0090.00614.82
7.3.60.0030.01414.72
7.3.50.0030.01414.53
7.3.40.0040.00714.69
7.3.30.0100.00314.66
7.3.20.0080.00816.21
7.3.10.0060.00316.51
7.3.00.0060.00916.62
7.2.330.0070.01116.58
7.2.320.0060.01316.29
7.2.310.0110.00616.41
7.2.300.0100.00716.60
7.2.290.0000.01716.28
7.2.260.0030.01314.98
7.2.250.0120.00614.88
7.2.240.0080.00815.04
7.2.230.0090.00915.04
7.2.220.0060.00914.94
7.2.210.0030.01014.75
7.2.200.0000.01814.95
7.2.190.0040.01414.71
7.2.180.0070.00714.91
7.2.170.0000.01514.75
7.2.160.0090.00614.83
7.2.150.0060.01016.89
7.2.140.0030.00716.56
7.2.130.0040.00716.66
7.2.120.0100.00016.55
7.2.110.0040.01116.68
7.2.100.0030.01016.63
7.2.90.0100.00316.85
7.2.80.0000.01316.70
7.2.70.0050.00516.62
7.2.60.0100.00316.83
7.2.50.0100.00616.91
7.2.40.0100.00316.77
7.2.30.0060.00616.62
7.2.20.0030.00916.91
7.2.10.0090.00316.57
7.2.00.0030.01217.88
7.1.330.0070.00415.58
7.1.320.0140.00315.65
7.1.310.0130.00015.83
7.1.300.0040.01415.76
7.1.290.0030.00715.93
7.1.280.0060.00315.77
7.1.270.0120.00615.83
7.1.260.0000.00915.70
7.1.250.0000.00915.72
7.1.240.0080.00415.68
7.1.230.0030.00715.61
7.1.220.0060.00615.47
7.1.210.0070.00415.84
7.1.200.0090.00615.79
7.1.190.0070.00715.78
7.1.180.0030.00915.85
7.1.170.0000.01415.82
7.1.160.0070.00715.41
7.1.150.0060.00915.45
7.1.140.0040.01115.78
7.1.130.0080.00315.91
7.1.120.0060.00315.52
7.1.110.0080.00415.83
7.1.100.0030.01015.84
7.1.90.0030.01015.68
7.1.80.0000.00915.48
7.1.70.0030.00516.34
7.1.60.0060.00417.76
7.1.50.0030.00915.77
7.1.40.0060.00315.72
7.1.30.0000.00815.89
7.1.20.0000.01215.62
7.1.10.0060.00615.77
7.1.00.0060.04019.05
7.0.330.0040.00815.41
7.0.320.0100.00315.25
7.0.310.0090.00315.21
7.0.300.0030.01415.27
7.0.290.0000.01415.10
7.0.280.0040.00715.23
7.0.270.0090.00315.26
7.0.260.0070.00415.35
7.0.250.0060.00315.16
7.0.240.0040.01115.31
7.0.230.0060.00315.01
7.0.220.0050.00515.51
7.0.210.0030.00615.11
7.0.200.0430.00514.99
7.0.190.0060.00315.14
7.0.180.0030.00715.35
7.0.170.0090.00015.31
7.0.160.0030.01015.09
7.0.150.0050.00515.44
7.0.140.0030.01015.05
7.0.130.0000.01315.43
7.0.120.0090.00615.02
7.0.110.0090.00315.39
7.0.100.0080.00415.24
7.0.90.0410.00017.64
7.0.80.0470.00517.65
7.0.70.0350.00317.50
7.0.60.0420.00217.46
7.0.50.0400.00317.79
7.0.40.0350.00416.81
7.0.30.0390.00216.80
7.0.20.0390.00416.81
7.0.10.0360.00116.78
7.0.00.0370.00716.74
5.6.400.0100.00314.45
5.6.390.0090.00614.25
5.6.380.0110.00314.33
5.6.370.0030.01114.43
5.6.360.0000.01014.09
5.6.350.0030.01014.10
5.6.340.0080.00413.75
5.6.330.0070.00714.26
5.6.320.0000.01414.25
5.6.310.0000.01514.12
5.6.300.0060.00314.25
5.6.290.0070.00413.82
5.6.280.0090.00614.46
5.6.270.0060.00914.11
5.6.260.0000.01014.11
5.6.250.0040.00814.25
5.6.240.0350.00617.34
5.6.230.0430.00517.45
5.6.220.0350.00217.49
5.6.210.0330.00817.37
5.6.200.0400.00217.53
5.6.190.0370.00217.64
5.6.180.0330.00317.56
5.6.170.0350.00517.69
5.6.160.0440.00617.46
5.6.150.0390.00217.56
5.6.140.0320.00917.70
5.6.130.0420.00217.66
5.6.120.0360.00417.63
5.6.110.0350.00617.63
5.6.100.0330.00417.57
5.6.90.0470.00417.55
5.6.80.0330.00617.20
5.6.70.0400.00517.28
5.6.60.0410.00217.13
5.6.50.0330.00317.26
5.6.40.0350.00517.19
5.6.30.0340.00317.13
5.6.20.0400.00417.27
5.6.10.0350.00317.21
5.6.00.0450.00417.16

preferences:
59.65 ms | 401 KiB | 5 Q