3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'categoryparameterusedpricing_15'; // look for a match preg_match("/[categoryparameterusedpricing_\d]/", $key, $matches); echo $matches[1];

preferences:
38.91 ms | 402 KiB | 5 Q