3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a1 = array('1','2','3'); $a2 = array('3'); var_dump(array_diff($a1, $a2));
based on VsQKK
Output for 4.3.0 - 7.1.0
array(2) { [0]=> string(1) "1" [1]=> string(1) "2" }