3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input = array( array(1227, 146, 1, 39), array(1227, 146, 1, 39), array(1228, 146, 1, 39), ); $input = array_map("unserialize", array_unique(array_map("serialize", $input))); print_r($input); /* credits: http://stackoverflow.com/a/946300/1438393 */
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => Array ( [0] => 1227 [1] => 146 [2] => 1 [3] => 39 ) [2] => Array ( [0] => 1228 [1] => 146 [2] => 1 [3] => 39 ) )