3v4l.org

run code in 500+ PHP versions simultaneously
<?php $txt = "Testando se essa pescaria é valida @ju1lio.leao, se não for aciona @alycianne. Importante deixar @mirian ciente. E a @simone.akemi de sobreaviso."; $pattern = "/@(?:[a-z0-9-]+\.)*[a-z0-9]+/"; preg_match_all($pattern, $txt, $matches); print_r($matches[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IS4IS
function name:  (null)
number of ops:  12
compiled vars:  !0 = $txt, !1 = $pattern, !2 = $matches
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'Testando+se+essa+pescaria+%C3%A9+valida+%40ju1lio.leao%2C+se+n%C3%A3o+for+aciona+%40alycianne.%0AImportante+deixar+%40mirian+ciente.+E+a+%40simone.akemi+de+sobreaviso.'
    5     1        ASSIGN                                                       !1, '%2F%40%28%3F%3A%5Ba-z0-9-%5D%2B%5C.%29%2A%5Ba-z0-9%5D%2B%2F'
    6     2        INIT_FCALL                                                   'preg_match_all'
          3        SEND_VAR                                                     !1
          4        SEND_VAR                                                     !0
          5        SEND_REF                                                     !2
          6        DO_ICALL                                                     
    7     7        INIT_FCALL                                                   'print_r'
          8        FETCH_DIM_R                                          ~6      !2, 0
          9        SEND_VAL                                                     ~6
         10        DO_ICALL                                                     
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
127.63 ms | 477 KiB | 9 Q