3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myarray = Array ( 221 => 'suspended-suspended-1', 691 => 'knee-ir-1', 812 => 'knee-ir-4' ); $row['id']=691; //for example if(isset($myarray[$row['id']]) && strpos($myarray[$row['id']],"ir") !==false){ echo "ir exists on the search index ".$row['id']; }

preferences:
23.37 ms | 404 KiB | 5 Q