3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(verify_emails('angelo@sandcliffsales.com')){ echo "valid"; }else { echo "invalid" ; } function verify_emails($email,$verifyMxRecord=true) { if(filter_var($email,FILTER_VALIDATE_EMAIL)) { list($user, $domain) = explode('@', $email); $mx = checkdnsrr($domain, 'MX'); return $mx ; } return false; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/au3TV
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'verify_emails'
          1        SEND_VAL_EX                                              'angelo%40sandcliffsales.com'
          2        DO_FCALL                                      0  $0      
          3      > JMPZ                                                     $0, ->6
    4     4    >   ECHO                                                     'valid'
          5      > JMP                                                      ->7
    7     6    >   ECHO                                                     'invalid'
   20     7    > > RETURN                                                   1

Function verify_emails:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 22
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/au3TV
function name:  verify_emails
number of ops:  24
compiled vars:  !0 = $email, !1 = $verifyMxRecord, !2 = $user, !3 = $domain, !4 = $mx
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      <true>
   13     2        INIT_FCALL                                               'filter_var'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 274
          5        DO_ICALL                                         $5      
          6      > JMPZ                                                     $5, ->22
   15     7    >   INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 '%40'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $6      
         11        FETCH_LIST_R                                     $7      $6, 0
         12        ASSIGN                                                   !2, $7
         13        FETCH_LIST_R                                     $9      $6, 1
         14        ASSIGN                                                   !3, $9
         15        FREE                                                     $6
   16    16        INIT_FCALL                                               'checkdnsrr'
         17        SEND_VAR                                                 !3
         18        SEND_VAL                                                 'MX'
         19        DO_ICALL                                         $11     
         20        ASSIGN                                                   !4, $11
   17    21      > RETURN                                                   !4
   19    22    > > RETURN                                                   <false>
   20    23*     > RETURN                                                   null

End of function verify_emails

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.11 ms | 1400 KiB | 19 Q