3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.29 ms | 1395 KiB | 19 Q