3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( 'we7290e4d1_zemi06'=>'dir/aaa/', 'we7290e4d1_zemi07'=>'dir/aaa/', 'we7290e4d1_zemi08'=>'dir/bbb/', 'we7290e4d1_zemi09'=>'dir/aaa/', 'we7290e4d1_zemi10'=>'dir/ccc/', 'we7290e4d1_zemi11'=>'dir/ccc/', ); $uniq_arr = array_unique($arr); var_dump($uniq_arr);
Output for 7.3.0 - 7.3.26, 7.4.0 - 7.4.14, 8.0.0 - 8.0.2
array(3) { ["we7290e4d1_zemi06"]=> string(8) "dir/aaa/" ["we7290e4d1_zemi08"]=> string(8) "dir/bbb/" ["we7290e4d1_zemi10"]=> string(8) "dir/ccc/" }