3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ["they has mystring in it", "some", "other", "elements"]; if (stripos(implode(" ", $array),'mystring') !== false) { echo "found mystring"; }

preferences:
34.19 ms | 405 KiB | 5 Q