3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Der Punkt steht für das Verzeichnis, in der auch dieses // PHP-Programm gespeichert ist $verzeichnis = "uploads"; echo "<ol>"; // Text, ob ein Verzeichnis angegeben wurde if ( is_dir ( $verzeichnis )) { // öffnen des Verzeichnisses if ( $handle = opendir($verzeichnis) ) { // einlesen der Verzeichnisses while (($file = readdir($handle)) !== false) { echo "<li>Dateiname: "; echo $file; echo "<ul><li>Dateityp: "; echo filetype( $file ); echo "</li></ul>\n"; } closedir($handle); } } echo "</ol>"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 29
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 29
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 12
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 12
Branch analysis from position: 26
Branch analysis from position: 12
Branch analysis from position: 29
Branch analysis from position: 29
filename:       /in/GtnUV
function name:  (null)
number of ops:  31
compiled vars:  !0 = $verzeichnis, !1 = $handle, !2 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'uploads'
    5     1        ECHO                                                     '%3Col%3E'
    8     2        INIT_FCALL                                               'is_dir'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5      > JMPZ                                                     $4, ->29
   11     6    >   INIT_FCALL                                               'opendir'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $5      
          9        ASSIGN                                           ~6      !1, $5
         10      > JMPZ                                                     ~6, ->29
   14    11    > > JMP                                                      ->20
   16    12    >   ECHO                                                     '%3Cli%3EDateiname%3A+'
   17    13        ECHO                                                     !2
   19    14        ECHO                                                     '%3Cul%3E%3Cli%3EDateityp%3A+'
   20    15        INIT_FCALL                                               'filetype'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $7      
         18        ECHO                                                     $7
   21    19        ECHO                                                     '%3C%2Fli%3E%3C%2Ful%3E%0A'
   14    20    >   INIT_FCALL                                               'readdir'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                         $8      
         23        ASSIGN                                           ~9      !2, $8
         24        TYPE_CHECK                                  1018          ~9
         25      > JMPNZ                                                    ~10, ->12
   23    26    >   INIT_FCALL                                               'closedir'
         27        SEND_VAR                                                 !1
         28        DO_ICALL                                                 
   26    29    >   ECHO                                                     '%3C%2Fol%3E'
   27    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.56 ms | 1396 KiB | 23 Q