3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array( array(1227, 146, 1, 39), array(1227, 146, 1, 39), array(1228, 146, 1, 39), ); $array = array_unique($array, SORT_REGULAR); print_r($array);
Output for 5.2.9 - 5.6.28, hhvm-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 ) )
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 5.2.8
Warning: Wrong parameter count for array_unique() in /in/m6akv on line 8