3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match_all("/(?J)((?P<A>a)!|(?P<A>a)=(?P<type>[si])) ((?P<B>b)!|(?P<B>b)=(?P<type>[si]))/", "a! b=s a=i b!", $m, PREG_SET_ORDER); foreach ($m as $s) { foreach ($s as $k => $v) { if (is_int($k)) { unset($s[$k]); } } print_r($s); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 20
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 20
Branch analysis from position: 8
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 14
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 15
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/fZ6rk
function name:  (null)
number of ops:  22
compiled vars:  !0 = $m, !1 = $s, !2 = $v, !3 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_match_all'
          1        SEND_VAL                                                 '%2F%28%3FJ%29%28%28%3FP%3CA%3Ea%29%21%7C%28%3FP%3CA%3Ea%29%3D%28%3FP%3Ctype%3E%5Bsi%5D%29%29+%28%28%3FP%3CB%3Eb%29%21%7C%28%3FP%3CB%3Eb%29%3D%28%3FP%3Ctype%3E%5Bsi%5D%29%29%2F'
          2        SEND_VAL                                                 'a%21+b%3Ds+a%3Di+b%21'
          3        SEND_REF                                                 !0
          4        SEND_VAL                                                 2
          5        DO_ICALL                                                 
    4     6      > FE_RESET_R                                       $5      !0, ->20
          7    > > FE_FETCH_R                                               $5, !1, ->20
    5     8    > > FE_RESET_R                                       $6      !1, ->15
          9    > > FE_FETCH_R                                       ~7      $6, !2, ->15
         10    >   ASSIGN                                                   !3, ~7
    6    11        TYPE_CHECK                                   16          !3
         12      > JMPZ                                                     ~9, ->14
    7    13    >   UNSET_DIM                                                !1, !3
    5    14    > > JMP                                                      ->9
         15    >   FE_FREE                                                  $6
   10    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
    4    19      > JMP                                                      ->7
         20    >   FE_FREE                                                  $5
   11    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.15 ms | 1396 KiB | 17 Q