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($array1 as $k=>$v){ if(!in_array($k[$v],array_values($array2))){ echo "Value $v exists \n"; } }
based on OroOt
Output for 4.3.0 - 7.2.0
Value te exists Value yes exists Value we exists Value no exists Value 1 exists Value sdfsdf exists Value Resolved exists