3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $sam = array(Array ( "0" => Array ( "0" => 24 ),"1" => Array("0" => 25)), Array ( "0" => Array ( "0" => 24 ),"1" => Array("0" => 25)), Array ( "0" => Array ( "0" => 24 ),"1" => Array("0" => 25 ))); $sam=array_unique($sam); $sam = array_map("unserialize", array_unique(array_map("serialize", $sam))); print_r($sam);
Output for 5.4.0 - 7.1.7
Notice: Array to string conversion in /in/daMKQ on line 6 Notice: Array to string conversion in /in/daMKQ on line 6 Notice: Array to string conversion in /in/daMKQ on line 6 Notice: Array to string conversion in /in/daMKQ on line 6 Notice: Array to string conversion in /in/daMKQ on line 6 Notice: Array to string conversion in /in/daMKQ on line 6 Notice: Array to string conversion in /in/daMKQ on line 6 Notice: Array to string conversion in /in/daMKQ on line 6 Array ( [0] => Array ( [0] => Array ( [0] => 24 ) [1] => Array ( [0] => 25 ) ) )
Output for 4.3.0 - 5.3.29
Array ( [0] => Array ( [0] => Array ( [0] => 24 ) [1] => Array ( [0] => 25 ) ) )