3v4l.org

run code in 500+ PHP versions simultaneously
<?php function getDuration(): void { $a = [1,2,3]; // array_unique: single-value parameter - bitmask not allowed $arr = [ 'array' => $a, 'flags' => SORT_REGULAR ]; var_dump(array_unique(...$arr)); } getDuration();

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.5.30.0240.00516.60
8.5.20.0230.00716.76
8.5.10.0150.00416.53
8.5.00.0140.00516.68
8.4.180.0110.00719.67
8.4.170.0220.00419.30
8.4.160.0240.00819.55
8.4.150.0140.00919.85
8.4.140.0140.00817.35
8.4.130.0130.00417.52
8.4.120.0130.00517.74
8.4.110.0210.01017.74
8.4.100.0340.00217.54
8.4.90.0220.00617.75
8.4.80.0210.00517.75
8.4.70.0330.01317.60
8.4.60.0370.00817.71
8.4.50.0360.00717.96
8.4.40.0390.00917.56
8.4.30.0160.00517.53
8.4.20.0250.00717.67
8.4.10.0390.00917.52
8.3.300.0200.00518.18
8.3.290.0220.00918.26
8.3.280.0330.01018.28
8.3.270.0250.01016.41
8.3.260.0310.00616.62
8.3.250.0360.00716.68
8.3.240.0330.00416.55
8.3.230.0380.00916.67
8.3.220.0320.01016.62
8.3.210.0360.00716.65
8.3.200.0430.01116.50
8.3.190.0350.01316.46
8.3.180.0350.00616.59
8.3.170.0350.01516.41
8.3.160.0410.00616.64
8.3.150.0190.00416.73
8.3.140.0230.00616.66
8.3.130.0160.00316.72
8.3.120.0170.00316.77
8.3.110.0240.00616.52
8.3.100.0150.00516.68
8.3.90.0210.00916.50
8.3.80.0160.00416.77
8.3.70.0290.00616.48
8.3.60.0250.00516.49
8.3.50.0330.01016.73
8.3.40.0310.00817.63
8.3.30.0250.00417.61
8.3.20.0250.00817.92
8.3.10.0160.00717.67
8.3.00.0210.00217.67

preferences:
43.75 ms | 707 KiB | 5 Q