3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fp = fsockopen("173.194.34.49", 80, $errno, $errstr, 30); if (!$fp) { echo "$errstr ($errno)<br />\n"; } else { $out = "GET / HTTP/1.1\r\n"; $out .= "Host: www.example.com\r\n"; $out .= "Connection: Close\r\n\r\n"; fwrite($fp, $out); while (!feof($fp)) { echo fgets($fp, 128); } fclose($fp); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 24
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 24
Branch analysis from position: 34
Branch analysis from position: 24
filename:       /in/lGG94
function name:  (null)
number of ops:  38
compiled vars:  !0 = $fp, !1 = $errno, !2 = $errstr, !3 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'fsockopen'
          1        SEND_VAL                                                 '173.194.34.49'
          2        SEND_VAL                                                 80
          3        SEND_REF                                                 !1
          4        SEND_REF                                                 !2
          5        SEND_VAL                                                 30
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !0, $4
    4     8        BOOL_NOT                                         ~6      !0
          9      > JMPZ                                                     ~6, ->16
    5    10    >   ROPE_INIT                                     4  ~8      !2
         11        ROPE_ADD                                      1  ~8      ~8, '+%28'
         12        ROPE_ADD                                      2  ~8      ~8, !1
         13        ROPE_END                                      3  ~7      ~8, '%29%3Cbr+%2F%3E%0A'
         14        ECHO                                                     ~7
         15      > JMP                                                      ->37
    7    16    >   ASSIGN                                                   !3, 'GET+%2F+HTTP%2F1.1%0D%0A'
    8    17        ASSIGN_OP                                     8          !3, 'Host%3A+www.example.com%0D%0A'
    9    18        ASSIGN_OP                                     8          !3, 'Connection%3A+Close%0D%0A%0D%0A'
   10    19        INIT_FCALL                                               'fwrite'
         20        SEND_VAR                                                 !0
         21        SEND_VAR                                                 !3
         22        DO_ICALL                                                 
   11    23      > JMP                                                      ->29
   12    24    >   INIT_FCALL                                               'fgets'
         25        SEND_VAR                                                 !0
         26        SEND_VAL                                                 128
         27        DO_ICALL                                         $14     
         28        ECHO                                                     $14
   11    29    >   INIT_FCALL                                               'feof'
         30        SEND_VAR                                                 !0
         31        DO_ICALL                                         $15     
         32        BOOL_NOT                                         ~16     $15
         33      > JMPNZ                                                    ~16, ->24
   14    34    >   INIT_FCALL                                               'fclose'
         35        SEND_VAR                                                 !0
         36        DO_ICALL                                                 
   15    37    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.74 ms | 1400 KiB | 23 Q