3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Counter = 0; $FolderTitle[$Counter] = "This is 1 example (text) with a (number)(01230_12-3)"; echo preg_match("/\(\K[-\d_]+/", $FolderTitle[$Counter], $out) ? $out[0] : 'no match';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CjnC6
function name:  (null)
number of ops:  16
compiled vars:  !0 = $Counter, !1 = $FolderTitle, !2 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    3     1        ASSIGN_DIM                                               !1, !0
          2        OP_DATA                                                  'This+is+1+example+%28text%29+with+a+%28number%29%2801230_12-3%29'
    4     3        INIT_FCALL                                               'preg_match'
          4        SEND_VAL                                                 '%2F%5C%28%5CK%5B-%5Cd_%5D%2B%2F'
          5        FETCH_DIM_R                                      ~5      !1, !0
          6        SEND_VAL                                                 ~5
          7        SEND_REF                                                 !2
          8        DO_ICALL                                         $6      
          9      > JMPZ                                                     $6, ->13
         10    >   FETCH_DIM_R                                      ~7      !2, 0
         11        QM_ASSIGN                                        ~8      ~7
         12      > JMP                                                      ->14
         13    >   QM_ASSIGN                                        ~8      'no+match'
         14    >   ECHO                                                     ~8
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.44 ms | 999 KiB | 14 Q