3v4l.org

run code in 300+ PHP versions simultaneously
<?php $iter = new RecursiveIteratorIterator(new RecursiveDirectoryIterator('/', FilesystemIterator::SKIP_DOTS), RecursiveIteratorIterator::SELF_FIRST, RecursiveIteratorIterator::CATCH_GET_CHILD); $n = 0; foreach ($iter as $file) { if ($iter->isDir()) { echo sprintf("%s % 10d %s %s\n", str_pad($file, 80, ' ', STR_PAD_RIGHT), $iter->getSize(), date('r', $iter->getMTime()), decoct($iter->getPerms()) ); } if ($n++ == 100) break; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 48
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 48
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 43
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 46, Position 2 = 47
Branch analysis from position: 46
1 jumps found. (Code = 42) Position 1 = 48
Branch analysis from position: 48
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 47
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 43
Branch analysis from position: 48
Branch analysis from position: 48
filename:       /in/rts99
function name:  (null)
number of ops:  50
compiled vars:  !0 = $iter, !1 = $n, !2 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'RecursiveIteratorIterator'
          1        NEW                                              $4      'RecursiveDirectoryIterator'
          2        SEND_VAL_EX                                              '%2F'
          3        SEND_VAL_EX                                              4096
          4        DO_FCALL                                      0          
          5        SEND_VAR_NO_REF_EX                                       $4
          6        SEND_VAL_EX                                              1
          7        SEND_VAL_EX                                              16
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !0, $3
    4    10        ASSIGN                                                   !1, 0
    5    11      > FE_RESET_R                                       $9      !0, ->48
         12    > > FE_FETCH_R                                               $9, !2, ->48
    6    13    >   INIT_METHOD_CALL                                         !0, 'isDir'
         14        DO_FCALL                                      0  $10     
         15      > JMPZ                                                     $10, ->43
    7    16    >   INIT_FCALL                                               'sprintf'
         17        SEND_VAL                                                 '%25s+++%25+10d+++%25s+%25s%0A'
    8    18        INIT_FCALL                                               'str_pad'
         19        SEND_VAR                                                 !2
         20        SEND_VAL                                                 80
         21        SEND_VAL                                                 '+'
         22        SEND_VAL                                                 1
         23        DO_ICALL                                         $11     
         24        SEND_VAR                                                 $11
    9    25        INIT_METHOD_CALL                                         !0, 'getSize'
         26        DO_FCALL                                      0  $12     
         27        SEND_VAR                                                 $12
   10    28        INIT_FCALL                                               'date'
         29        SEND_VAL                                                 'r'
         30        INIT_METHOD_CALL                                         !0, 'getMTime'
         31        DO_FCALL                                      0  $13     
         32        SEND_VAR                                                 $13
         33        DO_ICALL                                         $14     
         34        SEND_VAR                                                 $14
   11    35        INIT_FCALL                                               'decoct'
         36        INIT_METHOD_CALL                                         !0, 'getPerms'
         37        DO_FCALL                                      0  $15     
         38        SEND_VAR                                                 $15
         39        DO_ICALL                                         $16     
         40        SEND_VAR                                                 $16
         41        DO_ICALL                                         $17     
         42        ECHO                                                     $17
   14    43    >   POST_INC                                         ~18     !1
         44        IS_EQUAL                                                 ~18, 100
         45      > JMPZ                                                     ~19, ->47
         46    > > JMP                                                      ->48
    5    47    > > JMP                                                      ->12
         48    >   FE_FREE                                                  $9
   15    49      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.13 ms | 1400 KiB | 21 Q