3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(array_unique(array(array(1, 2), array(1, 2), array(2, 3))));
Output for 7.2.0 - 7.2.8
Notice: Array to string conversion in /in/hckCd on line 3 Notice: Array to string conversion in /in/hckCd on line 3 Notice: Array to string conversion in /in/hckCd on line 3 array(1) { [0]=> array(2) { [0]=> int(1) [1]=> int(2) } }
Output for 5.4.0 - 7.1.20
Notice: Array to string conversion in /in/hckCd on line 3 Notice: Array to string conversion in /in/hckCd on line 3 Notice: Array to string conversion in /in/hckCd on line 3 Notice: Array to string conversion in /in/hckCd on line 3 Notice: Array to string conversion in /in/hckCd on line 3 Notice: Array to string conversion in /in/hckCd on line 3 Notice: Array to string conversion in /in/hckCd on line 3 Notice: Array to string conversion in /in/hckCd on line 3 array(1) { [0]=> array(2) { [0]=> int(1) [1]=> int(2) } }
Output for 4.3.0 - 5.2.8, 5.2.10 - 5.3.29
array(1) { [0]=> array(2) { [0]=> int(1) [1]=> int(2) } }
Output for 5.2.9
array(2) { [0]=> array(2) { [0]=> int(1) [1]=> int(2) } [2]=> array(2) { [0]=> int(2) [1]=> int(3) } }