3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'ezeze smtp.mailfrom=mymail@gmail.com; rerer'; echo preg_match( '/smtp\.mailfrom=\K[^;]+/', $string, $match ) ? $match[0] : 'no email address';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ON9Rg
function name:  (null)
number of ops:  13
compiled vars:  !0 = $string, !1 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'ezeze+smtp.mailfrom%3Dmymail%40gmail.com%3B+rerer'
    5     1        INIT_FCALL                                               'preg_match'
    6     2        SEND_VAL                                                 '%2Fsmtp%5C.mailfrom%3D%5CK%5B%5E%3B%5D%2B%2F'
    7     3        SEND_VAR                                                 !0
    8     4        SEND_REF                                                 !1
    5     5        DO_ICALL                                         $3      
    8     6      > JMPZ                                                     $3, ->10
   10     7    >   FETCH_DIM_R                                      ~4      !1, 0
          8        QM_ASSIGN                                        ~5      ~4
          9      > JMP                                                      ->11
   11    10    >   QM_ASSIGN                                        ~5      'no+email+address'
         11    >   ECHO                                                     ~5
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
245.93 ms | 999 KiB | 14 Q