3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array ( 0 => array ('Hund', 'Katze'), 1 => array ('Hund', 'Katze', 'Pferd'), 2 => array ('Hund', 'Katze'), 3 => array ('Katze', 'Hund'), 4 => array (1=>'Hund', 2=>'Katze'), ); $b = array_unique($a, SORT_REGULAR); print_r($b);
based on JPR3A
Output for 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.30 - 7.3.0rc3
Array ( [0] => Array ( [0] => Hund [1] => Katze ) [1] => Array ( [0] => Hund [1] => Katze [2] => Pferd ) [3] => Array ( [0] => Katze [1] => Hund ) [4] => Array ( [1] => Hund [2] => Katze ) )