3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array1 = array("a" => "sky", "star", "moon", "cloud", "moon"); $array2 = array("b" => "sky", "sun", "moon"); // Comparing the values $result = array_diff($array1, $array2); print_r($result);
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
Array ( [0] => star [2] => cloud )