3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $item = ( Array ( 'group_roles_name' => 'CREATOR' ) ); $value = "CREATOR"; if(is_array($item) && !in_array($values,$item)){ // not equal, break de loop $itemFound = false; echo "not found"; } else if(is_array($item) && in_array($values,$item)){ echo "found"; }
based on kBsoH
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: values in /in/3QtR7 on line 13 not found
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: values in /in/3QtR7 on line 13 not found