3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = dir(dirname(sys_get_temp_dir())."/etc"); while (false !== ($entry = $d->read())) { echo $entry."\n";} $file = fopen('/etc/shadow', 'r'); while($line = fgets($file)) { printf("%s\n", $line); }
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 = 11
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 24
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 24
Branch analysis from position: 33
Branch analysis from position: 24
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 11
Branch analysis from position: 18
Branch analysis from position: 11
filename:       /in/RVXCU
function name:  (null)
number of ops:  34
compiled vars:  !0 = $d, !1 = $entry, !2 = $file, !3 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'dir'
          1        INIT_FCALL                                               'dirname'
          2        INIT_FCALL                                               'sys_get_temp_dir'
          3        DO_ICALL                                         $4      
          4        SEND_VAR                                                 $4
          5        DO_ICALL                                         $5      
          6        CONCAT                                           ~6      $5, '%2Fetc'
          7        SEND_VAL                                                 ~6
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !0, $7
    4    10      > JMP                                                      ->13
         11    >   CONCAT                                           ~9      !1, '%0A'
         12        ECHO                                                     ~9
         13    >   INIT_METHOD_CALL                                         !0, 'read'
         14        DO_FCALL                                      0  $10     
         15        ASSIGN                                           ~11     !1, $10
         16        TYPE_CHECK                                  1018          ~11
         17      > JMPNZ                                                    ~12, ->11
    6    18    >   INIT_FCALL                                               'fopen'
         19        SEND_VAL                                                 '%2Fetc%2Fshadow'
         20        SEND_VAL                                                 'r'
         21        DO_ICALL                                         $13     
         22        ASSIGN                                                   !2, $13
    8    23      > JMP                                                      ->28
         24    >   INIT_FCALL                                               'printf'
         25        SEND_VAL                                                 '%25s%0A'
         26        SEND_VAR                                                 !3
         27        DO_ICALL                                                 
         28    >   INIT_FCALL                                               'fgets'
         29        SEND_VAR                                                 !2
         30        DO_ICALL                                         $16     
         31        ASSIGN                                           ~17     !3, $16
         32      > JMPNZ                                                    ~17, ->24
         33    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.86 ms | 1396 KiB | 25 Q