3v4l.org

run code in 300+ PHP versions simultaneously
<?php $h = fopen("http://www.google.fr", 'r'); while($line = fgets($h)) { printf("line = '%s'.\n", $line); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 6
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 6
Branch analysis from position: 15
Branch analysis from position: 6
filename:       /in/NAShd
function name:  (null)
number of ops:  16
compiled vars:  !0 = $h, !1 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'fopen'
          1        SEND_VAL                                                 'http%3A%2F%2Fwww.google.fr'
          2        SEND_VAL                                                 'r'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    4     5      > JMP                                                      ->10
          6    >   INIT_FCALL                                               'printf'
          7        SEND_VAL                                                 'line+%3D+%27%25s%27.%0A'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
         10    >   INIT_FCALL                                               'fgets'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $5      
         13        ASSIGN                                           ~6      !1, $5
         14      > JMPNZ                                                    ~6, ->6
         15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.34 ms | 1395 KiB | 19 Q