3v4l.org

run code in 300+ PHP versions simultaneously
<?php $directoryPath= "WEB-INF/classes/test.java"; $directoryhandler = opendir($path); function showFilesFolders ($path){ while($element = readdir($directoryhandler)!== false ){ if(is_dir($element)){ echo "$element is Folder \n"; } else{ echo "$element is file \n"; } } } showFilesFolders ($directoryPath); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZvL7T
function name:  (null)
number of ops:  9
compiled vars:  !0 = $directoryPath, !1 = $directoryhandler, !2 = $path
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'WEB-INF%2Fclasses%2Ftest.java'
    3     1        INIT_FCALL                                               'opendir'
          2        SEND_VAR                                                 !2
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
   16     5        INIT_FCALL                                               'showfilesfolders'
          6        SEND_VAR                                                 !0
          7        DO_FCALL                                      0          
   19     8      > RETURN                                                   1

Function showfilesfolders:
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 = 19, Position 2 = 2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 2
Branch analysis from position: 19
Branch analysis from position: 2
filename:       /in/ZvL7T
function name:  showFilesFolders
number of ops:  20
compiled vars:  !0 = $path, !1 = $element, !2 = $directoryhandler
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1      > JMP                                                      ->13
    7     2    >   INIT_FCALL                                               'is_dir'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $3      
          5      > JMPZ                                                     $3, ->10
    8     6    >   NOP                                                      
          7        FAST_CONCAT                                      ~4      !1, '+is+Folder+%0A'
          8        ECHO                                                     ~4
          9      > JMP                                                      ->13
   11    10    >   NOP                                                      
         11        FAST_CONCAT                                      ~5      !1, '+is+file+%0A'
         12        ECHO                                                     ~5
    6    13    >   INIT_FCALL                                               'readdir'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                         $6      
         16        TYPE_CHECK                                  1018  ~7      $6
         17        ASSIGN                                           ~8      !1, ~7
         18      > JMPNZ                                                    ~8, ->2
   14    19    > > RETURN                                                   null

End of function showfilesfolders

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.94 ms | 1403 KiB | 20 Q