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();
Output for 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) }

preferences:
59.36 ms | 707 KiB | 4 Q