3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = [ ['a' => 2, 'b' => 3], ['a' => 2, 'b' => 3], ['a' => 2, 'b' => 5], ]; var_dump(array_unique($arr));
based on TLKYA
Output for hhvm-3.15.4, 7.2.0 - 7.3.0
Notice: Array to string conversion in /in/penBn on line 9 Notice: Array to string conversion in /in/penBn on line 9 Notice: Array to string conversion in /in/penBn on line 9 array(1) { [0]=> array(2) { ["a"]=> int(2) ["b"]=> int(3) } }
Output for 5.6.0 - 5.6.38, 7.0.0 - 7.1.25
Notice: Array to string conversion in /in/penBn on line 9 Notice: Array to string conversion in /in/penBn on line 9 Notice: Array to string conversion in /in/penBn on line 9 Notice: Array to string conversion in /in/penBn on line 9 Notice: Array to string conversion in /in/penBn on line 9 Notice: Array to string conversion in /in/penBn on line 9 Notice: Array to string conversion in /in/penBn on line 9 Notice: Array to string conversion in /in/penBn on line 9 array(1) { [0]=> array(2) { ["a"]=> int(2) ["b"]=> int(3) } }