3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** from http://php.net/manual/en/function.array-unique.php : BY DEFAULT: Note: Two elements are considered equal if and only if (string) $elem1 === (string) $elem2 i.e. when the string representation is the same, the first element will be used. */ //this will include false and 0, but will not include '' and null: var_dump(array_unique([ false,0,'',null] ));

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.40.0150.00018.67
8.3.30.0110.00418.54
8.3.20.0040.00420.21
8.3.10.0050.00321.60
8.3.00.0000.00822.45
8.2.170.0060.00922.96
8.2.160.0140.00019.16
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00020.53
8.2.120.0040.00426.35
8.2.110.0000.00922.11
8.2.100.0000.01219.27
8.2.90.0040.00417.50
8.2.80.0040.00418.63
8.2.70.0040.00417.50
8.2.60.0000.00717.68
8.2.50.0090.00018.07
8.2.40.0000.00819.70
8.2.30.0080.00018.03
8.2.20.0000.00717.95
8.2.10.0000.00717.98
8.2.00.0050.00218.18
8.1.270.0090.00023.96
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00320.46
8.1.230.0040.00717.77
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0040.00417.11
8.1.190.0060.00317.10
8.1.180.0040.00418.10
8.1.170.0000.00718.71
8.1.160.0070.00018.73
8.1.150.0070.00020.00
8.1.140.0060.00319.36
8.1.130.0000.00717.36
8.1.120.0020.00517.30
8.1.110.0000.00717.34
8.1.100.0070.00017.32
8.1.90.0000.00717.32
8.1.80.0050.00317.35
8.1.70.0000.00717.21
8.1.60.0000.00717.49
8.1.50.0060.00317.38
8.1.40.0000.00817.39
8.1.30.0050.00217.37
8.1.20.0040.00417.54
8.1.10.0040.00417.36
8.1.00.0040.00417.30
8.0.300.0030.00318.77
8.0.290.0060.00316.58
8.0.280.0060.00318.30
8.0.270.0050.00317.18
8.0.260.0070.00016.68
8.0.250.0000.00716.80
8.0.240.0040.00416.75
8.0.230.0030.00316.85
8.0.220.0000.00716.77
8.0.210.0040.00416.69
8.0.200.0030.00316.72
8.0.190.0000.00816.84
8.0.180.0040.00416.78
8.0.170.0030.00316.84
8.0.160.0060.00316.74
8.0.150.0040.00416.65
8.0.140.0000.00716.72
8.0.130.0070.00013.13
8.0.120.0040.00416.77
8.0.110.0040.00416.55
8.0.100.0040.00416.75
8.0.90.0000.00716.80
8.0.80.0000.01516.80
8.0.70.0040.00416.65
8.0.60.0030.00716.61
8.0.50.0040.00416.54
8.0.30.0080.01116.94
8.0.20.0120.00717.40
8.0.10.0040.00416.84
8.0.00.0140.00516.58
7.4.330.0000.00415.55
7.4.320.0000.00616.32
7.4.300.0040.00416.35
7.4.290.0030.00316.31
7.4.280.0000.00716.34
7.4.270.0000.00716.28
7.4.260.0060.00316.35
7.4.250.0000.00716.39
7.4.240.0030.00316.34
7.4.230.0000.00716.34
7.4.220.0000.00716.20
7.4.210.0080.00516.44
7.4.200.0080.00016.46
7.4.160.0110.00716.38
7.4.150.0120.00617.40
7.4.140.0120.00517.86
7.4.130.0080.01216.57
7.4.120.0110.01116.36
7.4.110.0100.00716.30
7.4.100.0080.01616.34
7.4.90.0100.00716.26
7.4.80.0100.00619.39
7.4.70.0130.00316.28
7.4.60.0080.00816.45
7.4.50.0070.00716.30
7.4.40.0070.01016.21
7.4.30.0060.01516.54
7.4.00.0030.01414.99
7.3.330.0030.00313.03
7.3.320.0000.00513.06
7.3.310.0040.00416.21
7.3.300.0040.00416.02
7.3.290.0080.00616.15
7.3.280.0080.01116.17
7.3.270.0130.00617.40
7.3.260.0090.01116.15
7.3.240.0100.00716.32
7.3.230.0110.00516.45
7.3.210.0120.00916.46
7.3.200.0100.00716.20
7.3.190.0090.00616.05
7.3.180.0080.01116.23
7.3.170.0100.00716.22
7.3.160.0170.00716.21
7.3.120.0040.01414.58
7.3.110.0030.01614.68
7.3.100.0160.00014.30
7.3.90.0100.00014.51
7.3.80.0110.00414.61
7.3.70.0030.00914.54
7.3.60.0040.01214.43
7.3.50.0060.00914.36
7.3.40.0060.00914.46
7.3.30.0030.01014.37
7.3.20.0060.00316.42
7.3.10.0030.01316.50
7.3.00.0070.00716.62
7.2.330.0140.00416.26
7.2.320.0080.00816.25
7.2.310.0100.00716.34
7.2.300.0110.00716.46
7.2.290.0070.01016.52
7.2.240.0120.00614.39
7.2.230.0000.00914.93
7.2.220.0030.01214.61
7.2.210.0090.00614.28
7.2.200.0030.01414.62
7.2.190.0040.01414.79
7.2.180.0040.00814.68
7.2.170.0060.00914.73
7.2.160.0120.00614.57
7.2.150.0120.00316.63
7.2.140.0060.00616.65
7.2.130.0040.01116.65
7.2.120.0000.01016.65
7.2.110.0100.00616.78
7.2.100.0000.01516.49
7.2.90.0040.00716.61
7.2.80.0060.00816.61
7.2.70.0060.01016.50
7.2.60.0090.00516.81
7.2.50.0000.01116.49
7.2.40.0100.00716.78
7.2.30.0060.00916.51
7.2.20.0060.00616.56
7.2.10.0060.00316.47
7.2.00.0050.00917.79
7.1.330.0070.01015.62
7.1.320.0030.01515.57
7.1.310.0030.00615.59
7.1.300.0130.00015.48
7.1.290.0040.00915.22
7.1.280.0140.00015.51
7.1.270.0000.01215.54
7.1.260.0040.01115.70
7.1.250.0000.01215.53
7.1.200.0070.00715.81
7.1.100.0100.00317.85
7.1.70.0100.00016.92
7.1.60.0040.00716.91
7.1.50.3470.00332.84
7.1.40.2830.01732.50
7.1.30.2900.01032.39
7.1.20.3100.01732.52
7.1.10.3770.00714.54
7.1.00.1570.01314.63
7.0.200.0060.00316.65
7.0.190.3700.01014.69
7.0.180.3900.01314.11
7.0.170.3730.01314.05
7.0.160.3530.00714.12
7.0.150.2430.01314.19
7.0.140.2030.00714.23
7.0.130.1530.01014.36
7.0.120.1370.01714.46
7.0.110.2100.00314.16
7.0.100.1830.01314.16
7.0.90.1800.00714.16
7.0.80.1470.00714.26
7.0.70.1470.00714.15
7.0.60.1900.01013.95
7.0.50.1870.01314.24
7.0.40.1670.01314.59
7.0.30.1230.00314.45
7.0.20.2470.00314.25
7.0.10.1830.01714.54
7.0.00.1230.01314.34

preferences:
44.77 ms | 400 KiB | 5 Q