3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array("AA","BB","CC","DD"); $check1 = array("AA","CC"); $check2 = array("EE","FF"); if(array_intersect($array, $check1)) { echo "Exist"; }else{ echo "Not exist"; } if(array_intersect($array, $check2)) { echo "Exist"; }else{ echo "Not exist"; }

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
216.62 ms | 2717 KiB | 11 Q