3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array1 = array("a" => "green", "b" => "1", "c" => "blue", "red"); $array2 = array("a" => "green", "yellow", "red", 1.0); $result = array_diff($array1, $array2); print_r($result);
based on g5MiW
Output for 4.3.0 - 7.1.0
Array ( [c] => blue )