3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "-paint, old 12"; if (preg_match('~\bpaint,\s+old\s+(1[0-4]|[1-9])(?!\d)~', $string)) { echo "There is a match!"; } else { echo "There is no match!"; }

preferences:
35.08 ms | 404 KiB | 5 Q