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); print_r($b);
based on Lcano
Output for hhvm-3.18.5 - 3.21.3, 7.2.0 - 7.3.0rc3
Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Array ( [0] => Array ( [0] => Hund [1] => Katze ) )
Output for 7.0.30 - 7.1.20
Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Array ( [0] => Array ( [0] => Hund [1] => Katze ) )
Output for hhvm-3.22.0
Notice: Array to string conversion in /in/JPR3A on line -1 Notice: Array to string conversion in /in/JPR3A on line -1 Notice: Array to string conversion in /in/JPR3A on line -1 Notice: Array to string conversion in /in/JPR3A on line -1 Notice: Array to string conversion in /in/JPR3A on line -1 Array ( [0] => Array ( [0] => Hund [1] => Katze ) )
Output for 5.6.30
Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Notice: Array to string conversion in /in/JPR3A on line 11 Array ( [0] => Array ( [0] => Hund [1] => Katze ) )