3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array1 = array("a" => "green", "red","b" => "brown"); $array2 = array("a" => "green","b" => "brown", "red"); $result = array_diff_assoc($array1, $array2); print_r($result); ?>
based on 1Kfb0
Output for 4.3.0 - 7.2.0
Array ( )