3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = fopen("http://www.white-bullet.com/domain-data.txt", "r"); $output = fopen("php://stdout", "w+"); if ($input) { while (($line = fgets($input))) { fwrite( $output, substr($line, 0, strpos($line, " "))); fwrite($output, "\n"); } fclose($input); fclose($output); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 40
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 12
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 12
Branch analysis from position: 34
Branch analysis from position: 12
Branch analysis from position: 40
filename:       /in/3VGFr
function name:  (null)
number of ops:  41
compiled vars:  !0 = $input, !1 = $output, !2 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'fopen'
          1        SEND_VAL                                                 'http%3A%2F%2Fwww.white-bullet.com%2Fdomain-data.txt'
          2        SEND_VAL                                                 'r'
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    3     5        INIT_FCALL                                               'fopen'
          6        SEND_VAL                                                 'php%3A%2F%2Fstdout'
          7        SEND_VAL                                                 'w%2B'
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !1, $5
    5    10      > JMPZ                                                     !0, ->40
    6    11    > > JMP                                                      ->29
    7    12    >   INIT_FCALL                                               'fwrite'
    8    13        SEND_VAR                                                 !1
         14        INIT_FCALL                                               'substr'
         15        SEND_VAR                                                 !2
         16        SEND_VAL                                                 0
         17        INIT_FCALL                                               'strpos'
         18        SEND_VAR                                                 !2
         19        SEND_VAL                                                 '+'
         20        DO_ICALL                                         $7      
         21        SEND_VAR                                                 $7
         22        DO_ICALL                                         $8      
         23        SEND_VAR                                                 $8
         24        DO_ICALL                                                 
    9    25        INIT_FCALL                                               'fwrite'
         26        SEND_VAR                                                 !1
         27        SEND_VAL                                                 '%0A'
         28        DO_ICALL                                                 
    6    29    >   INIT_FCALL                                               'fgets'
         30        SEND_VAR                                                 !0
         31        DO_ICALL                                         $11     
         32        ASSIGN                                           ~12     !2, $11
         33      > JMPNZ                                                    ~12, ->12
   12    34    >   INIT_FCALL                                               'fclose'
         35        SEND_VAR                                                 !0
         36        DO_ICALL                                                 
   13    37        INIT_FCALL                                               'fclose'
         38        SEND_VAR                                                 !1
         39        DO_ICALL                                                 
   15    40    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.14 ms | 1400 KiB | 25 Q