3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dh = opendir(""); while($filename = readdir($dh)) { // любые операции с вашим файлом, например $fs = filesize($filename); $ft = filetype($filename); echo "Имя: ".$filename."\nРазмер: ".$fs."\nТип:".$ft; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 5
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 5
Branch analysis from position: 24
Branch analysis from position: 5
filename:       /in/2tLMB
function name:  (null)
number of ops:  25
compiled vars:  !0 = $dh, !1 = $fs, !2 = $filename, !3 = $ft
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'opendir'
          1        SEND_VAL                                                 ''
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    4     4      > JMP                                                      ->19
   10     5    >   INIT_FCALL                                               'filesize'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !1, $6
   12     9        INIT_FCALL                                               'filetype'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !3, $8
   14    13        CONCAT                                           ~10     '%D0%98%D0%BC%D1%8F%3A+', !2
         14        CONCAT                                           ~11     ~10, '%0A%D0%A0%D0%B0%D0%B7%D0%BC%D0%B5%D1%80%3A+'
         15        CONCAT                                           ~12     ~11, !1
         16        CONCAT                                           ~13     ~12, '%0A%D0%A2%D0%B8%D0%BF%3A'
         17        CONCAT                                           ~14     ~13, !3
         18        ECHO                                                     ~14
    4    19    >   INIT_FCALL                                               'readdir'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $15     
         22        ASSIGN                                           ~16     !2, $15
         23      > JMPNZ                                                    ~16, ->5
   18    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.14 ms | 1395 KiB | 21 Q