3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array( array( "a", "b", "c" => "def" ), array( "aa", "bb", "cc" => "def" ), array( "a", "b", "c" => "defg" ), array( "aa", "bb", "cc" => "def" ), array( "a", "b", "c" => "def" ), ); var_dump( array_unique( $array ) );
Output for 7.0.0 - 7.1.0
Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 array(1) { [0]=> array(3) { [0]=> string(1) "a" [1]=> string(1) "b" ["c"]=> string(3) "def" } }
Output for 5.4.0 - 5.6.21
Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 Notice: Array to string conversion in /in/ZRkMJ on line 11 array(1) { [0]=> array(3) { [0]=> string(1) "a" [1]=> string(1) "b" ["c"]=> string(3) "def" } }
Output for 5.2.12 - 5.3.29
array(1) { [0]=> array(3) { [0]=> string(1) "a" [1]=> string(1) "b" ["c"]=> string(3) "def" } }