3v4l.org

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