3v4l.org

run code in 300+ PHP versions simultaneously
<?php function validateEmail($email = "") { if (!$email) { return false; } if (filter_var($email, FILTER_VALIDATE_EMAIL)) { $domain = substr(strrchr($email, "@"), 1); if (!checkdnsrr($domain, 'MX')) { echo 222; // domain is not valid return false; } else if (preg_match('/successfulmatch\.com$/i', $domain) || preg_match('/88vip\.site$/i', $domain)) { return true; } } else { return false; } } var_dump(validateEmail("luxury01@gmail.com"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2oUa1
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'validateemail'
          2        SEND_VAL                                                 'luxury01%40gmail.com'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function validateemail:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 40
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 27
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
2 jumps found. (Code = 47) Position 1 = 32, Position 2 = 37
Branch analysis from position: 32
2 jumps found. (Code = 43) Position 1 = 38, Position 2 = 39
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 39
1 jumps found. (Code = 42) Position 1 = 41
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
Branch analysis from position: 40
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2oUa1
function name:  validateEmail
number of ops:  42
compiled vars:  !0 = $email, !1 = $domain
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV_INIT                                        !0      ''
    4     1        BOOL_NOT                                         ~2      !0
          2      > JMPZ                                                     ~2, ->4
    5     3    > > RETURN                                                   <false>
    8     4    >   INIT_FCALL                                               'filter_var'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 274
          7        DO_ICALL                                         $3      
          8      > JMPZ                                                     $3, ->40
    9     9    >   INIT_FCALL                                               'substr'
         10        INIT_FCALL                                               'strrchr'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 '%40'
         13        DO_ICALL                                         $4      
         14        SEND_VAR                                                 $4
         15        SEND_VAL                                                 1
         16        DO_ICALL                                         $5      
         17        ASSIGN                                                   !1, $5
   10    18        INIT_FCALL                                               'checkdnsrr'
         19        SEND_VAR                                                 !1
         20        SEND_VAL                                                 'MX'
         21        DO_ICALL                                         $7      
         22        BOOL_NOT                                         ~8      $7
         23      > JMPZ                                                     ~8, ->27
   11    24    >   ECHO                                                     222
   13    25      > RETURN                                                   <false>
         26*       JMP                                                      ->39
   14    27    >   INIT_FCALL                                               'preg_match'
         28        SEND_VAL                                                 '%2Fsuccessfulmatch%5C.com%24%2Fi'
         29        SEND_VAR                                                 !1
         30        DO_ICALL                                         $9      
         31      > JMPNZ_EX                                         ~10     $9, ->37
         32    >   INIT_FCALL                                               'preg_match'
         33        SEND_VAL                                                 '%2F88vip%5C.site%24%2Fi'
         34        SEND_VAR                                                 !1
         35        DO_ICALL                                         $11     
         36        BOOL                                             ~10     $11
         37    > > JMPZ                                                     ~10, ->39
   15    38    > > RETURN                                                   <true>
         39    > > JMP                                                      ->41
   18    40    > > RETURN                                                   <false>
   20    41    > > RETURN                                                   null

End of function validateemail

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.48 ms | 950 KiB | 27 Q