3v4l.org

run code in 300+ PHP versions simultaneously
<?php $domain_ip='yahoo.co.jp'; $whois_server='whois.jprs.jp'; $fp=fsockopen($whois_server,43,$errno,$errstr,15); if(!$fp){echo "$errstr ($errno)";} else{fputs($fp,"$domain_ip\n"); echo "<pre>\n"; while(!feof($fp)){$line=fgets($fp,128); echo mb_convert_encoding($line,'UTF-8','JIS,UTF-8');} echo "\n</pre>"; fclose ($fp);} ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 18
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 46
Branch analysis from position: 46
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 26
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 26
Branch analysis from position: 42
Branch analysis from position: 26
filename:       /in/CYIPN
function name:  (null)
number of ops:  47
compiled vars:  !0 = $domain_ip, !1 = $whois_server, !2 = $fp, !3 = $errno, !4 = $errstr, !5 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'yahoo.co.jp'
    3     1        ASSIGN                                                   !1, 'whois.jprs.jp'
    4     2        INIT_FCALL                                               'fsockopen'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 43
          5        SEND_REF                                                 !3
          6        SEND_REF                                                 !4
          7        SEND_VAL                                                 15
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !2, $8
    5    10        BOOL_NOT                                         ~10     !2
         11      > JMPZ                                                     ~10, ->18
         12    >   ROPE_INIT                                     4  ~12     !4
         13        ROPE_ADD                                      1  ~12     ~12, '+%28'
         14        ROPE_ADD                                      2  ~12     ~12, !3
         15        ROPE_END                                      3  ~11     ~12, '%29'
         16        ECHO                                                     ~11
         17      > JMP                                                      ->46
    6    18    >   INIT_FCALL                                               'fputs'
         19        SEND_VAR                                                 !2
         20        NOP                                                      
         21        FAST_CONCAT                                      ~14     !0, '%0A'
         22        SEND_VAL                                                 ~14
         23        DO_ICALL                                                 
    7    24        ECHO                                                     '%3Cpre%3E%0A'
    8    25      > JMP                                                      ->37
         26    >   INIT_FCALL                                               'fgets'
         27        SEND_VAR                                                 !2
         28        SEND_VAL                                                 128
         29        DO_ICALL                                         $16     
         30        ASSIGN                                                   !5, $16
    9    31        INIT_FCALL                                               'mb_convert_encoding'
         32        SEND_VAR                                                 !5
         33        SEND_VAL                                                 'UTF-8'
         34        SEND_VAL                                                 'JIS%2CUTF-8'
         35        DO_ICALL                                         $18     
         36        ECHO                                                     $18
    8    37    >   INIT_FCALL                                               'feof'
         38        SEND_VAR                                                 !2
         39        DO_ICALL                                         $19     
         40        BOOL_NOT                                         ~20     $19
         41      > JMPNZ                                                    ~20, ->26
   10    42    >   ECHO                                                     '%0A%3C%2Fpre%3E'
   11    43        INIT_FCALL                                               'fclose'
         44        SEND_VAR                                                 !2
         45        DO_ICALL                                                 
   12    46    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.73 ms | 1400 KiB | 25 Q