3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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";};
based on mR4YK
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0beta1
true