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 = 8, Position 2 = 26
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 9
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 23
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 9
Branch analysis from position: 17
Branch analysis from position: 9
Branch analysis from position: 26
filename:       /in/CKg79
function name:  (null)
number of ops:  27
compiled vars:  !0 = $handle, !1 = $buffer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   BEGIN_SILENCE                                    ~2      
          1        INIT_FCALL                                               'fopen'
          2        SEND_VAL                                                 'http%3A%2F%2Fwww.example.com%2F'
          3        SEND_VAL                                                 'r'
          4        DO_ICALL                                         $3      
          5        END_SILENCE                                              ~2
          6        ASSIGN                                                   !0, $3
    4     7      > JMPZ                                                     !0, ->26
    5     8    > > JMP                                                      ->10
    6     9    >   ECHO                                                     !1
    5    10    >   INIT_FCALL                                               'fgets'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 4096
         13        DO_ICALL                                         $5      
         14        ASSIGN                                           ~6      !1, $5
         15        TYPE_CHECK                                  1018          ~6
         16      > JMPNZ                                                    ~7, ->9
    8    17    >   INIT_FCALL                                               'feof'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $8      
         20        BOOL_NOT                                         ~9      $8
         21      > JMPZ                                                     ~9, ->23
    9    22    >   ECHO                                                     'Fehler%3A+unerwarteter+fgets%28%29+Fehlschlag%0A'
   11    23    >   INIT_FCALL                                               'fclose'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                                 
   12    26    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.44 ms | 1396 KiB | 21 Q