3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = "1385|1385|1385|1373|1373|1385|1373|1373|1373"; $b = explode("|", $a); $c = []; foreach($b as $id){ if (!in_array($id, $b)) $c[] = $id; } var_dump(join("|", $c));
Output for 7.3.0rc3
string(0) ""