3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $first = array("foo" => 123, "bar" => 456, "test"); $second = array("foo" => 456, "bar" => 123); echo var_dump(array_diff($first, $second));
based on 2XNlX
Output for 4.3.0 - 7.1.0
array(1) { [0]=> string(4) "test" }