3v4l.org

run code in 300+ PHP versions simultaneously
<?php $socket = @fsockopen('tcp://irc.quakenet.org', 6667, $errno, $errstr); if(!$socket) die($errstr . ' (' . $errno . ')'); stream_set_blocking($socket, 0); while(!feof($msg = fgets($socket, 510))) { echo $msg, "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 20
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 20
Branch analysis from position: 32
Branch analysis from position: 20
filename:       /in/FoTno
function name:  (null)
number of ops:  33
compiled vars:  !0 = $socket, !1 = $errno, !2 = $errstr, !3 = $msg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   BEGIN_SILENCE                                    ~4      
          1        INIT_FCALL                                               'fsockopen'
          2        SEND_VAL                                                 'tcp%3A%2F%2Firc.quakenet.org'
          3        SEND_VAL                                                 6667
          4        SEND_REF                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                         $5      
          7        END_SILENCE                                              ~4
          8        ASSIGN                                                   !0, $5
    5     9        BOOL_NOT                                         ~7      !0
         10      > JMPZ                                                     ~7, ->15
         11    >   CONCAT                                           ~8      !2, '+%28'
         12        CONCAT                                           ~9      ~8, !1
         13        CONCAT                                           ~10     ~9, '%29'
         14      > EXIT                                                     ~10
    7    15    >   INIT_FCALL                                               'stream_set_blocking'
         16        SEND_VAR                                                 !0
         17        SEND_VAL                                                 0
         18        DO_ICALL                                                 
    9    19      > JMP                                                      ->22
   10    20    >   ECHO                                                     !3
         21        ECHO                                                     '%0A'
    9    22    >   INIT_FCALL                                               'feof'
         23        INIT_FCALL                                               'fgets'
         24        SEND_VAR                                                 !0
         25        SEND_VAL                                                 510
         26        DO_ICALL                                         $12     
         27        ASSIGN                                           ~13     !3, $12
         28        SEND_VAL                                                 ~13
         29        DO_ICALL                                         $14     
         30        BOOL_NOT                                         ~15     $14
         31      > JMPNZ                                                    ~15, ->20
   11    32    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.38 ms | 1401 KiB | 21 Q