3v4l.org

run code in 300+ PHP versions simultaneously
<?php $handle = fopen("http://www.example.com/", "r"); if ($handle) { while (($buffer = fgets($handle, 4096)) !== false) { echo $buffer; } if (!feof($handle)) { echo "Fehler: unerwarteter fgets() Fehlschlag\n"; } fclose($handle); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 24
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 7
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 21
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 7
Branch analysis from position: 15
Branch analysis from position: 7
Branch analysis from position: 24
filename:       /in/HGKua
function name:  (null)
number of ops:  25
compiled vars:  !0 = $handle, !1 = $buffer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'fopen'
          1        SEND_VAL                                                 'http%3A%2F%2Fwww.example.com%2F'
          2        SEND_VAL                                                 'r'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    4     5      > JMPZ                                                     !0, ->24
    5     6    > > JMP                                                      ->8
    6     7    >   ECHO                                                     !1
    5     8    >   INIT_FCALL                                               'fgets'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 4096
         11        DO_ICALL                                         $4      
         12        ASSIGN                                           ~5      !1, $4
         13        TYPE_CHECK                                  1018          ~5
         14      > JMPNZ                                                    ~6, ->7
    8    15    >   INIT_FCALL                                               'feof'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $7      
         18        BOOL_NOT                                         ~8      $7
         19      > JMPZ                                                     ~8, ->21
    9    20    >   ECHO                                                     'Fehler%3A+unerwarteter+fgets%28%29+Fehlschlag%0A'
   11    21    >   INIT_FCALL                                               'fclose'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                                 
   12    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.76 ms | 1396 KiB | 21 Q