3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array( array(5,6), array(1,2), array(6,5) ); array_walk($arr, 'sort'); $deduped = array(); foreach ($arr as $val) { $deduped[serialize($val)] = $val; } $arr = array_values($deduped); print_r($arr);
Output for 4.3.0 - 7.1.0
Array ( [0] => Array ( [0] => 5 [1] => 6 ) [1] => Array ( [0] => 1 [1] => 2 ) )