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 9qcMe
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7TA1f
function name:  (null)
number of ops:  9
compiled vars:  !0 = $string, !1 = $matches
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, 'categoryparameterusedpricing_15'
   6     1        INIT_FCALL                                               'preg_match'
         2        SEND_VAL                                                 '%2F%5Bcategoryparameterusedpricing_%5Cd%5D%2F'
         3        SEND_VAR                                                 !0
         4        SEND_REF                                                 !1
         5        DO_ICALL                                                 
   7     6        FETCH_DIM_R                                      $4      !1, 0
         7        ECHO                                                     $4
         8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0