3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array ( 0 => array ( 'id' => '1430611', 'contentobject_id' => '124', 'creator_id' => '77277', 'version' => '5522', 'status' => '3', 'created' => '1350030385', 'modified' => '1350030665', 'workflow_event_pos' => '0', 'user_id' => '0', 'language_mask' => '5', 'initial_language_id' => '4', ), 1 => array ( 'id' => '1430840', 'contentobject_id' => '124', 'creator_id' => '679', 'version' => '5523', 'status' => '3', 'created' => '1350037411', 'modified' => '1350037490', 'workflow_event_pos' => '0', 'user_id' => '0', 'language_mask' => '5', 'initial_language_id' => '4', ), 2 => array ( 'id' => '1430841', 'contentobject_id' => '124', 'creator_id' => '679', 'version' => '5524', 'status' => '3', 'created' => '1350037680', 'modified' => '1350037688', 'workflow_event_pos' => '0', 'user_id' => '0', 'language_mask' => '5', 'initial_language_id' => '4', ), 3 => array ( 'id' => '1430847', 'contentobject_id' => '124', 'creator_id' => '679', 'version' => '5525', 'status' => '3', 'created' => '1350039388', 'modified' => '1350039620', 'workflow_event_pos' => '0', 'user_id' => '0', 'language_mask' => '5', 'initial_language_id' => '4', ), 4 => array ( 'id' => '1431072', 'contentobject_id' => '124', 'creator_id' => '679', 'version' => '5526', 'status' => '1', 'created' => '1350046041', 'modified' => '1350046056', 'workflow_event_pos' => '0', 'user_id' => '0', 'language_mask' => '5', 'initial_language_id' => '4', ), 5 => array ( 'id' => '1431072', 'contentobject_id' => '124', 'creator_id' => '679', 'version' => '5526', 'status' => '1', 'created' => '1350046041', 'modified' => '1350046056', 'workflow_event_pos' => '0', 'user_id' => '0', 'language_mask' => '5', 'initial_language_id' => '4', ), ); var_dump( array_unique( $array, SORT_REGULAR ) );
Output for 5.2.9 - 7.1.0
array(5) { [0]=> array(11) { ["id"]=> string(7) "1430611" ["contentobject_id"]=> string(3) "124" ["creator_id"]=> string(5) "77277" ["version"]=> string(4) "5522" ["status"]=> string(1) "3" ["created"]=> string(10) "1350030385" ["modified"]=> string(10) "1350030665" ["workflow_event_pos"]=> string(1) "0" ["user_id"]=> string(1) "0" ["language_mask"]=> string(1) "5" ["initial_language_id"]=> string(1) "4" } [1]=> array(11) { ["id"]=> string(7) "1430840" ["contentobject_id"]=> string(3) "124" ["creator_id"]=> string(3) "679" ["version"]=> string(4) "5523" ["status"]=> string(1) "3" ["created"]=> string(10) "1350037411" ["modified"]=> string(10) "1350037490" ["workflow_event_pos"]=> string(1) "0" ["user_id"]=> string(1) "0" ["language_mask"]=> string(1) "5" ["initial_language_id"]=> string(1) "4" } [2]=> array(11) { ["id"]=> string(7) "1430841" ["contentobject_id"]=> string(3) "124" ["creator_id"]=> string(3) "679" ["version"]=> string(4) "5524" ["status"]=> string(1) "3" ["created"]=> string(10) "1350037680" ["modified"]=> string(10) "1350037688" ["workflow_event_pos"]=> string(1) "0" ["user_id"]=> string(1) "0" ["language_mask"]=> string(1) "5" ["initial_language_id"]=> string(1) "4" } [3]=> array(11) { ["id"]=> string(7) "1430847" ["contentobject_id"]=> string(3) "124" ["creator_id"]=> string(3) "679" ["version"]=> string(4) "5525" ["status"]=> string(1) "3" ["created"]=> string(10) "1350039388" ["modified"]=> string(10) "1350039620" ["workflow_event_pos"]=> string(1) "0" ["user_id"]=> string(1) "0" ["language_mask"]=> string(1) "5" ["initial_language_id"]=> string(1) "4" } [4]=> array(11) { ["id"]=> string(7) "1431072" ["contentobject_id"]=> string(3) "124" ["creator_id"]=> string(3) "679" ["version"]=> string(4) "5526" ["status"]=> string(1) "1" ["created"]=> string(10) "1350046041" ["modified"]=> string(10) "1350046056" ["workflow_event_pos"]=> string(1) "0" ["user_id"]=> string(1) "0" ["language_mask"]=> string(1) "5" ["initial_language_id"]=> string(1) "4" } }
Output for 4.3.0 - 5.2.8
Warning: Wrong parameter count for array_unique() in /in/Zg7nM on line 5 NULL