3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email = "edusegzy2@gmail.com"; $domain = explode("google.com",$email); $valid = checkdnsrr($domain[1], "ANY"); if($valid) echo "The domain has an MX record!"; else echo "Cannot locate MX record for $domain[1]!"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G6QDr
function name:  (null)
number of ops:  21
compiled vars:  !0 = $email, !1 = $domain, !2 = $valid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'edusegzy2%40gmail.com'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 'google.com'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    5     6        INIT_FCALL                                               'checkdnsrr'
          7        FETCH_DIM_R                                      ~6      !1, 1
          8        SEND_VAL                                                 ~6
          9        SEND_VAL                                                 'ANY'
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !2, $7
    7    12      > JMPZ                                                     !2, ->15
         13    >   ECHO                                                     'The+domain+has+an+MX+record%21'
         14      > JMP                                                      ->20
    8    15    >   ROPE_INIT                                     3  ~11     'Cannot+locate+MX+record+for+'
         16        FETCH_DIM_R                                      ~9      !1, 1
         17        ROPE_ADD                                      1  ~11     ~11, ~9
         18        ROPE_END                                      2  ~10     ~11, '%21'
         19        ECHO                                                     ~10
    9    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.97 ms | 1395 KiB | 17 Q