3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hostname = "google.com"; if(dns_get_mx($hostname, $mxhosts, $weights)) { foreach($mxhosts as $key => $host) { echo "Hostname: $host (Weight: {$weights[$key]}<BR/>\n"; } } else { echo "Could not find any MX records for $hostname\n"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 20
Branch analysis from position: 7
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 18
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 18
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hfPkb
function name:  (null)
number of ops:  25
compiled vars:  !0 = $hostname, !1 = $mxhosts, !2 = $weights, !3 = $host, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'google.com'
    4     1        INIT_FCALL                                               'dns_get_mx'
          2        SEND_VAR                                                 !0
          3        SEND_REF                                                 !1
          4        SEND_REF                                                 !2
          5        DO_ICALL                                         $6      
          6      > JMPZ                                                     $6, ->20
    6     7    > > FE_RESET_R                                       $7      !1, ->18
          8    > > FE_FETCH_R                                       ~8      $7, !3, ->18
          9    >   ASSIGN                                                   !4, ~8
    8    10        ROPE_INIT                                     5  ~12     'Hostname%3A+'
         11        ROPE_ADD                                      1  ~12     ~12, !3
         12        ROPE_ADD                                      2  ~12     ~12, '+%28Weight%3A+'
         13        FETCH_DIM_R                                      ~10     !2, !4
         14        ROPE_ADD                                      3  ~12     ~12, ~10
         15        ROPE_END                                      4  ~11     ~12, '%3CBR%2F%3E%0A'
         16        ECHO                                                     ~11
    6    17      > JMP                                                      ->8
         18    >   FE_FREE                                                  $7
         19      > JMP                                                      ->24
   14    20    >   ROPE_INIT                                     3  ~16     'Could+not+find+any+MX+records+for+'
         21        ROPE_ADD                                      1  ~16     ~16, !0
         22        ROPE_END                                      2  ~15     ~16, '%0A'
         23        ECHO                                                     ~15
   18    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.49 ms | 1396 KiB | 15 Q