3v4l.org

run code in 300+ PHP versions simultaneously
<?php function domain_availability($domains){ foreach ($domains as $domain) { $ns= @dns_get_record($domain,DNS_NS); if(count($ns)) { $rs[$domain]=0; } else { $rs[$domain]=1; } } return $rs; } $domains=array("google.com","hsghjgsy.org","jsdhjs.es","aajjks.eu","sjdjsd.in"); $rs=domain_availability($domains); print_r($rs);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u01lg
function name:  (null)
number of ops:  9
compiled vars:  !0 = $domains, !1 = $rs
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   ASSIGN                                                   !0, <array>
   20     1        INIT_FCALL                                               'domain_availability'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                                   !1, $3
   21     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Function domain_availability:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 18
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 18
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/u01lg
function name:  domain_availability
number of ops:  21
compiled vars:  !0 = $domains, !1 = $domain, !2 = $ns, !3 = $rs
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1      > FE_RESET_R                                       $4      !0, ->18
          2    > > FE_FETCH_R                                               $4, !1, ->18
    6     3    >   BEGIN_SILENCE                                    ~5      
          4        INIT_FCALL                                               'dns_get_record'
          5        SEND_VAR                                                 !1
          6        SEND_VAL                                                 2
          7        DO_ICALL                                         $6      
          8        END_SILENCE                                              ~5
          9        ASSIGN                                                   !2, $6
    7    10        COUNT                                            ~8      !2
         11      > JMPZ                                                     ~8, ->15
    9    12    >   ASSIGN_DIM                                               !3, !1
         13        OP_DATA                                                  0
    7    14      > JMP                                                      ->17
   13    15    >   ASSIGN_DIM                                               !3, !1
         16        OP_DATA                                                  1
    4    17    > > JMP                                                      ->2
         18    >   FE_FREE                                                  $4
   16    19      > RETURN                                                   !3
   17    20*     > RETURN                                                   null

End of function domain_availability

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.46 ms | 958 KiB | 16 Q