3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = 'categoryparameterusedpricing_15'; // look for a match preg_match("/[categoryparameterusedpricing_\d]/", $string, $matches); echo $matches[1];
based on YpqV4
Output for 5.3.0 - 7.2.6
Notice: Undefined offset: 1 in /in/9qcMe on line 7
Output for 4.3.0 - 5.2.17
Notice: Undefined offset: 1 in /in/9qcMe on line 7