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[0];
based on 7TA1f
Output for 5.2.0 - 7.2.0
Warning: preg_match(): Unknown modifier '\' in /in/iLINB on line 6
Output for 4.3.11 - 5.1.6
Warning: preg_match(): Unknown modifier '\' in /in/iLINB on line 6 Notice: Undefined offset: 0 in /in/iLINB on line 7
Output for 4.3.0 - 4.3.10
Warning: Unknown modifier '\' in /in/iLINB on line 6 Notice: Undefined offset: 0 in /in/iLINB on line 7