3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array1 = array("a" => "grün", "b" => "braun", "c" => array('S'), "rot"); $array2 = array("b" => "braun", "a" => "grünf", "c" => array('g'), "rot"); $ergebnis_array = array_intersect_assoc($array1, $array2); print_r($ergebnis_array);
Output for 5.4.0 - 7.1.0
Notice: Array to string conversion in /in/oU8Gk on line 5 Notice: Array to string conversion in /in/oU8Gk on line 5 Array ( [b] => braun [c] => Array ( [0] => S ) [0] => rot )
Output for 4.3.0 - 5.3.29
Array ( [b] => braun [c] => Array ( [0] => S ) [0] => rot )