3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $values = ( Array ( 'group_roles_name' => 'CREATOR' ) ); $item = "CREATOR"; if(is_array($item) && !in_array($values,$item)){ // not equal, break de loop $itemFound = false; echo "not found"; } else{ echo "found"; }
based on GKjA3
Output for 4.3.0 - 7.2.0
found