3v4l.org

run code in 150+ 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,array_values($array1))){ echo "Value $v exists \n"; } }
based on uG1H8
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
Value another exists Value 0 exists Value Unresolved exists