3v4l.org

run code in 300+ PHP versions simultaneously
<?php $unique = ''; foreach (array_count_values(str_split('abclkjabc')) as $char => $count) { if ($count === 1) { $unique .= $char; } } echo $unique;

preferences:
27.14 ms | 405 KiB | 5 Q