3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "jackson heights, queens, new york, us"; $word = explode(',', $string); echo $word[1]."<br>"; if(strpos($string, $word[1]) === false){ echo "not found"; } else { echo "found"; }

preferences:
37.86 ms | 402 KiB | 5 Q