3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array1 = array("te","yes","we","no","1","sdfsdf","Resolved"); $array2 = array("another","no","we","no","0","sdfsdf","Unresolved"); foreach($array2 as $k=>$v){ if(!in_array($v,$array1)){ echo "Value $v exists \n"; }else{ echo "Value $v does not exists \n"; } }
based on tknJF
Output for 4.3.0 - 7.2.0
Value another exists Value no does not exists Value we does not exists Value no does not exists Value 0 exists Value sdfsdf does not exists Value Unresolved exists