3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array1 = array("1","2","3","4"); $array2 = array("1","1","3","4","5"); $result = array_diff ($array1, $array2); echo '<pre>'; print_r($result); echo '</pre>';
based on lHD7f
Output for 4.3.0 - 7.2.0
<pre>Array ( [1] => 2 ) </pre>