3v4l.org

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

preferences:
65.02 ms | 402 KiB | 5 Q