3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (array('[1234](56 789)', '[1011](1213)') as $value) { $exp = '/[\(\[].+?[\)\]]/'; $res = preg_match($exp, $value, $matches); print_r($matches); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 1, Position 2 = 13
Branch analysis from position: 1
2 jumps found. (Code = 78) Position 1 = 2, Position 2 = 13
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/VHUDp
function name:  (null)
number of ops:  15
compiled vars:  !0 = $value, !1 = $exp, !2 = $res, !3 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E > > FE_RESET_R                                       $4      <array>, ->13
          1    > > FE_FETCH_R                                               $4, !0, ->13
    3     2    >   ASSIGN                                                   !1, '%2F%5B%5C%28%5C%5B%5D.%2B%3F%5B%5C%29%5C%5D%5D%2F'
    4     3        INIT_FCALL                                               'preg_match'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !0
          6        SEND_REF                                                 !3
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !2, $6
    5     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                                 
    2    12      > JMP                                                      ->1
         13    >   FE_FREE                                                  $4
    6    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.57 ms | 1394 KiB | 17 Q