3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match_all('`{([^{}]+)}(\(((?>[^()]+|(?2))*)\))`', 'test {22413}(ghfhgfhg(())sd(d)sf) s{1}(l(k)l)dfdsf {5}(45d4fsdf4)', $match, PREG_SET_ORDER); $match = array_column($match, 3, 1); print_r($match);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FafLX
function name:  (null)
number of ops:  16
compiled vars:  !0 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_match_all'
          1        SEND_VAL                                                 '%60%7B%28%5B%5E%7B%7D%5D%2B%29%7D%28%5C%28%28%28%3F%3E%5B%5E%28%29%5D%2B%7C%28%3F2%29%29%2A%29%5C%29%29%60'
          2        SEND_VAL                                                 'test+%7B22413%7D%28ghfhgfhg%28%28%29%29sd%28d%29sf%29+s%7B1%7D%28l%28k%29l%29dfdsf+%7B5%7D%2845d4fsdf4%29'
          3        SEND_REF                                                 !0
          4        SEND_VAL                                                 2
          5        DO_ICALL                                                 
    3     6        INIT_FCALL                                               'array_column'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 3
          9        SEND_VAL                                                 1
         10        DO_ICALL                                         $2      
         11        ASSIGN                                                   !0, $2
    4    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.41 ms | 1394 KiB | 19 Q