3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = 'ok {RAH31E telex {Testing1}} {RAH31A telex {Testing1}} {RAH31B telex {Testing1}} {RAH31D telex {Testing1}}'; $pattern = '({(?<SENDER>[^\s]+?)\s(?<TYPE>[^\s]+?)\s{(?<MESSAGE>[^\s]+?)}})'; if(preg_match_all($pattern, $data, $matches, PREG_SET_ORDER )){ foreach($matches as $match){ echo $match['SENDER'], ':', $match['TYPE'], ':', $match['MESSAGE'], PHP_EOL; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 22
Branch analysis from position: 9
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 21
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 21
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
Branch analysis from position: 22
filename:       /in/mKYRW
function name:  (null)
number of ops:  23
compiled vars:  !0 = $data, !1 = $pattern, !2 = $matches, !3 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'ok+%7BRAH31E+telex+%7BTesting1%7D%7D+%7BRAH31A+telex+%7BTesting1%7D%7D+%7BRAH31B+telex+%7BTesting1%7D%7D+%7BRAH31D+telex+%7BTesting1%7D%7D'
    4     1        ASSIGN                                                   !1, '%28%7B%28%3F%3CSENDER%3E%5B%5E%5Cs%5D%2B%3F%29%5Cs%28%3F%3CTYPE%3E%5B%5E%5Cs%5D%2B%3F%29%5Cs%7B%28%3F%3CMESSAGE%3E%5B%5E%5Cs%5D%2B%3F%29%7D%7D%29'
    6     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !2
          6        SEND_VAL                                                 2
          7        DO_ICALL                                         $6      
          8      > JMPZ                                                     $6, ->22
    7     9    > > FE_RESET_R                                       $7      !2, ->21
         10    > > FE_FETCH_R                                               $7, !3, ->21
    8    11    >   FETCH_DIM_R                                      ~8      !3, 'SENDER'
         12        ECHO                                                     ~8
         13        ECHO                                                     '%3A'
         14        FETCH_DIM_R                                      ~9      !3, 'TYPE'
         15        ECHO                                                     ~9
         16        ECHO                                                     '%3A'
         17        FETCH_DIM_R                                      ~10     !3, 'MESSAGE'
         18        ECHO                                                     ~10
         19        ECHO                                                     '%0A'
    7    20      > JMP                                                      ->10
         21    >   FE_FREE                                                  $7
   10    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
252.25 ms | 1013 KiB | 14 Q