3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ($dh = opendir(__DIRECTORY__)) { while ($file = readdir($dh)) { if (in_array($file, array('.', '..'))) continue; else echo $file . "\n"; } closedir($dh); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 21
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 7
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 7
Branch analysis from position: 18
Branch analysis from position: 7
Branch analysis from position: 21
filename:       /in/GV3Md
function name:  (null)
number of ops:  22
compiled vars:  !0 = $dh, !1 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'opendir'
          1        FETCH_CONSTANT                                   ~2      '__DIRECTORY__'
          2        SEND_VAL                                                 ~2
          3        DO_ICALL                                         $3      
          4        ASSIGN                                           ~4      !0, $3
          5      > JMPZ                                                     ~4, ->21
    4     6    > > JMP                                                      ->13
    5     7    >   IN_ARRAY                                                 !1, <array>
          8      > JMPZ                                                     ~5, ->11
          9    > > JMP                                                      ->13
         10*       JMP                                                      ->13
    6    11    >   CONCAT                                           ~6      !1, '%0A'
         12        ECHO                                                     ~6
    4    13    >   INIT_FCALL                                               'readdir'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $7      
         16        ASSIGN                                           ~8      !1, $7
         17      > JMPNZ                                                    ~8, ->7
    8    18    >   INIT_FCALL                                               'closedir'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                                 
    9    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.11 ms | 1395 KiB | 19 Q