3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array1 = array('a'=>'scope1', 'b'=> 'scope2'); $array2 = array('b'=>'scope3', 'a'=> 'scope1'); var_dump(array_diff($array1, $array2));
based on ljvV9
Output for 4.3.0 - 7.1.0
array(1) { ["b"]=> string(6) "scope2" }