3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = array ( 0 => array ( 'admin_id' => '4', 'full_name' => 'Jesse Donat', 'timestamp' => 'Thu, 23 Oct 2014 03:34:40 +0000', ), 1 => array ( 'admin_id' => '4', 'full_name' => 'Jesse Donat', 'timestamp' => 'Thu, 23 Oct 2014 03:34:40 +0000', ), 2 => array ( 'bbq' => 'soda', ), ); print_r($data); $data = array_unique($data, SORT_REGULAR); print_r($data);
based on 9Xn2Y
Output for 5.2.9 - 7.1.0
Array ( [0] => Array ( [admin_id] => 4 [full_name] => Jesse Donat [timestamp] => Thu, 23 Oct 2014 03:34:40 +0000 ) [1] => Array ( [admin_id] => 4 [full_name] => Jesse Donat [timestamp] => Thu, 23 Oct 2014 03:34:40 +0000 ) [2] => Array ( [bbq] => soda ) ) Array ( [0] => Array ( [admin_id] => 4 [full_name] => Jesse Donat [timestamp] => Thu, 23 Oct 2014 03:34:40 +0000 ) [2] => Array ( [bbq] => soda ) )
Output for 4.3.0 - 5.2.8
Array ( [0] => Array ( [admin_id] => 4 [full_name] => Jesse Donat [timestamp] => Thu, 23 Oct 2014 03:34:40 +0000 ) [1] => Array ( [admin_id] => 4 [full_name] => Jesse Donat [timestamp] => Thu, 23 Oct 2014 03:34:40 +0000 ) [2] => Array ( [bbq] => soda ) ) Warning: Wrong parameter count for array_unique() in /in/RQh7i on line 23