3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email = 'delboy1978uk@work.com'; $regex = '#\w+@(?<domain>\w+\-?\w+\.\w+)#'; preg_match($regex, $email, $matches); $domain = $matches['domain']; if ($domain !== 'example-test.com') { echo 'domain '.$domain.' doesnt match'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/SorhQ
function name:  (null)
number of ops:  15
compiled vars:  !0 = $email, !1 = $regex, !2 = $matches, !3 = $domain
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'delboy1978uk%40work.com'
    4     1        ASSIGN                                                   !1, '%23%5Cw%2B%40%28%3F%3Cdomain%3E%5Cw%2B%5C-%3F%5Cw%2B%5C.%5Cw%2B%29%23'
    5     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    6     7        FETCH_DIM_R                                      ~7      !2, 'domain'
          8        ASSIGN                                                   !3, ~7
    7     9        IS_NOT_IDENTICAL                                         !3, 'example-test.com'
         10      > JMPZ                                                     ~9, ->14
    8    11    >   CONCAT                                           ~10     'domain+', !3
         12        CONCAT                                           ~11     ~10, '+doesnt+match'
         13        ECHO                                                     ~11
    9    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.63 ms | 1013 KiB | 15 Q