3v4l.org

run code in 500+ PHP versions simultaneously
<?php $fullString = 'ignore everything except this (text) and (that (text here))'; if (preg_match_all('~\(([^()]*)\)~', $fullString, $matches)) { print_r($matches[0]); // Get whole match values print_r($matches[1]); // Get Group 1 values }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/mBlbR
function name:  (null)
number of ops:  16
compiled vars:  !0 = $fullString, !1 = $matches
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'ignore+everything+except+this+%28text%29+and+%28that+%28text+here%29%29'
    4     1        INIT_FCALL                                                   'preg_match_all'
          2        SEND_VAL                                                     '%7E%5C%28%28%5B%5E%28%29%5D%2A%29%5C%29%7E'
          3        SEND_VAR                                                     !0
          4        SEND_REF                                                     !1
          5        DO_ICALL                                             $3      
          6      > JMPZ                                                         $3, ->15
    5     7    >   INIT_FCALL                                                   'print_r'
          8        FETCH_DIM_R                                          ~4      !1, 0
          9        SEND_VAL                                                     ~4
         10        DO_ICALL                                                     
    6    11        INIT_FCALL                                                   'print_r'
         12        FETCH_DIM_R                                          ~6      !1, 1
         13        SEND_VAL                                                     ~6
         14        DO_ICALL                                                     
    7    15    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
205.35 ms | 2303 KiB | 15 Q