3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = "<t@t.com>\n<tatacom>\n<t@ata@com>"; $re = '/<([^<>@]+@[^<>@]*)>/'; if (preg_match_all($re, $str, $matches)) { print_r($matches[1]); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/VS1o0
function name:  (null)
number of ops:  13
compiled vars:  !0 = $str, !1 = $re, !2 = $matches
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%3Ct%40t.com%3E%0A%3Ctatacom%3E%0A%3Ct%40ata%40com%3E'
    4     1        ASSIGN                                                       !1, '%2F%3C%28%5B%5E%3C%3E%40%5D%2B%40%5B%5E%3C%3E%40%5D%2A%29%3E%2F'
    5     2        INIT_FCALL                                                   'preg_match_all'
          3        SEND_VAR                                                     !1
          4        SEND_VAR                                                     !0
          5        SEND_REF                                                     !2
          6        DO_ICALL                                             $5      
          7      > JMPZ                                                         $5, ->12
    6     8    >   INIT_FCALL                                                   'print_r'
          9        FETCH_DIM_R                                          ~6      !2, 1
         10        SEND_VAL                                                     ~6
         11        DO_ICALL                                                     
    7    12    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.39 ms | 1996 KiB | 15 Q