3v4l.org

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