3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = [['type' => 'a', 'label' => 'b'], ['type' => 'a', 'label' => 'b']]; var_dump(array_unique($a));
Output for hhvm-3.12.14 - 3.17.3, 7.2.0 - 7.3.0rc3
Notice: Array to string conversion in /in/Eeu8f on line 5 Notice: Array to string conversion in /in/Eeu8f on line 5 array(1) { [0]=> array(2) { ["type"]=> string(1) "a" ["label"]=> string(1) "b" } }
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.20
Notice: Array to string conversion in /in/Eeu8f on line 5 Notice: Array to string conversion in /in/Eeu8f on line 5 Notice: Array to string conversion in /in/Eeu8f on line 5 Notice: Array to string conversion in /in/Eeu8f on line 5 array(1) { [0]=> array(2) { ["type"]=> string(1) "a" ["label"]=> string(1) "b" } }