3v4l.org

run code in 300+ PHP versions simultaneously
<?php $terms = ['one', 'two', 'three', 'one', 'four', 'five', 'two', 'six']; // $output = array_unique($terms); $output = array_keys(array_flip($terms)); print_r($output);

preferences:
42.29 ms | 402 KiB | 5 Q