3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strNonNumeric = '?ct=123'; $string = "456"; if (preg_match("/^\?ct\=(\d+\,?)+$|^\?ct\=\d+$/i", $strNonNumeric)) { echo "true";}; if (preg_match('/\b(?:' . $string . ')\b/i', $strNonNumeric)) {echo "whole word";};

preferences:
56.18 ms | 402 KiB | 5 Q