3v4l.org

run code in 300+ PHP versions simultaneously
<?php $qqlQueryOrMetric = " select * fro somethings"; $match = preg_match('/select.*from/', strtolower($qqlQueryOrMetric)); if ($match) { echo "yes"; } else { echo "no";}

preferences:
38.24 ms | 402 KiB | 5 Q