3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fd = fopen('php://stdin', 'r'); while (!feof($fd)) { $file = var_dump(fgets($fd)); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 6
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 6
Branch analysis from position: 18
Branch analysis from position: 6
filename:       /in/7RSgJ
function name:  (null)
number of ops:  19
compiled vars:  !0 = $fd, !1 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'fopen'
          1        SEND_VAL                                                 'php%3A%2F%2Fstdin'
          2        SEND_VAL                                                 'r'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    3     5      > JMP                                                      ->13
    4     6    >   INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'fgets'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                         $5      
         12        ASSIGN                                                   !1, $5
    3    13    >   INIT_FCALL                                               'feof'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $7      
         16        BOOL_NOT                                         ~8      $7
         17      > JMPNZ                                                    ~8, ->6
    5    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.5 ms | 1395 KiB | 21 Q