3v4l.org

run code in 300+ PHP versions simultaneously
<?php $socket = @fsockopen("ssl://www.google.com", 80); if (!$socket) { die("spojenie vypadlo"); } $httpReq = "GET / HTTP/1.1\n"; $httpReq .= "Host: www.google.com\n"; $httpReq .= "Accept: */*\n"; $httpReq .= "Kubo2Sniffer 1.0 (+http://kubo2.wz.sk)\n\n"; fwrite($socket, $httpReq); while($line = fgets($socket) !== "\n\n") { echo $line; } fclose($socket);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 19
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 19
Branch analysis from position: 26
Branch analysis from position: 19
filename:       /in/rsAIf
function name:  (null)
number of ops:  30
compiled vars:  !0 = $socket, !1 = $httpReq, !2 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   BEGIN_SILENCE                                    ~3      
          1        INIT_FCALL                                               'fsockopen'
          2        SEND_VAL                                                 'ssl%3A%2F%2Fwww.google.com'
          3        SEND_VAL                                                 80
          4        DO_ICALL                                         $4      
          5        END_SILENCE                                              ~3
          6        ASSIGN                                                   !0, $4
    3     7        BOOL_NOT                                         ~6      !0
          8      > JMPZ                                                     ~6, ->10
    4     9    > > EXIT                                                     'spojenie+vypadlo'
    6    10    >   ASSIGN                                                   !1, 'GET+%2F+HTTP%2F1.1%0A'
    7    11        ASSIGN_OP                                     8          !1, 'Host%3A+www.google.com%0A'
    8    12        ASSIGN_OP                                     8          !1, 'Accept%3A+%2A%2F%2A%0A'
    9    13        ASSIGN_OP                                     8          !1, 'Kubo2Sniffer+1.0+%28%2Bhttp%3A%2F%2Fkubo2.wz.sk%29%0A%0A'
   10    14        INIT_FCALL                                               'fwrite'
         15        SEND_VAR                                                 !0
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
   11    18      > JMP                                                      ->20
   12    19    >   ECHO                                                     !2
   11    20    >   INIT_FCALL                                               'fgets'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $12     
         23        IS_NOT_IDENTICAL                                 ~13     $12, '%0A%0A'
         24        ASSIGN                                           ~14     !2, ~13
         25      > JMPNZ                                                    ~14, ->19
   14    26    >   INIT_FCALL                                               'fclose'
         27        SEND_VAR                                                 !0
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.14 ms | 1396 KiB | 21 Q