3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/\[[^][]+\]\h+=>\h+STRING:\h+"(\w+(?:-\w+)*)"/'; $str = '[TIMETRA-VRTR-MIB::vRtrIfName.22.178] => STRING: "interface900" '; preg_match_all($re, $str, $matches); print_r($matches[1]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2PEdC
function name:  (null)
number of ops:  12
compiled vars:  !0 = $re, !1 = $str, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%5C%5B%5B%5E%5D%5B%5D%2B%5C%5D%5Ch%2B%3D%3E%5Ch%2BSTRING%3A%5Ch%2B%22%28%5Cw%2B%28%3F%3A-%5Cw%2B%29%2A%29%22%2F'
    4     1        ASSIGN                                                   !1, '%5BTIMETRA-VRTR-MIB%3A%3AvRtrIfName.22.178%5D+%3D%3E+STRING%3A+%22interface900%22+'
    6     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    7     7        INIT_FCALL                                               'print_r'
          8        FETCH_DIM_R                                      ~6      !2, 1
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.26 ms | 1005 KiB | 15 Q