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); echo $domain; 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/1KasA
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     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 = 41
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 28
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
2 jumps found. (Code = 47) Position 1 = 33, Position 2 = 38
Branch analysis from position: 33
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 40
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 40
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 38
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1KasA
function name:  validateEmail
number of ops:  43
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, ->41
    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        ECHO                                                     !1
   11    19        INIT_FCALL                                               'checkdnsrr'
         20        SEND_VAR                                                 !1
         21        SEND_VAL                                                 'MX'
         22        DO_ICALL                                         $7      
         23        BOOL_NOT                                         ~8      $7
         24      > JMPZ                                                     ~8, ->28
   12    25    >   ECHO                                                     222
   14    26      > RETURN                                                   <false>
         27*       JMP                                                      ->40
   15    28    >   INIT_FCALL                                               'preg_match'
         29        SEND_VAL                                                 '%2Fsuccessfulmatch%5C.com%24%2Fi'
         30        SEND_VAR                                                 !1
         31        DO_ICALL                                         $9      
         32      > JMPNZ_EX                                         ~10     $9, ->38
         33    >   INIT_FCALL                                               'preg_match'
         34        SEND_VAL                                                 '%2F88vip%5C.site%24%2Fi'
         35        SEND_VAR                                                 !1
         36        DO_ICALL                                         $11     
         37        BOOL                                             ~10     $11
         38    > > JMPZ                                                     ~10, ->40
   16    39    > > RETURN                                                   <true>
         40    > > JMP                                                      ->42
   19    41    > > RETURN                                                   <false>
   21    42    > > RETURN                                                   null

End of function validateemail

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.82 ms | 1407 KiB | 26 Q