3v4l.org

run code in 300+ PHP versions simultaneously
<?php $directory = '.'; $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($directory)); while($it->valid()) { if (!$it->isDot()) { echo 'SubPathName: ' . $it->getSubPathName() . "\n"; echo 'SubPath: ' . $it->getSubPath() . "\n"; echo 'Key: ' . $it->key() . "\n\n"; } $it->next(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 9
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 28
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 9
Branch analysis from position: 33
Branch analysis from position: 9
Branch analysis from position: 28
filename:       /in/mP1UT
function name:  (null)
number of ops:  34
compiled vars:  !0 = $directory, !1 = $it
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '.'
    4     1        NEW                                              $3      'RecursiveIteratorIterator'
          2        NEW                                              $4      'RecursiveDirectoryIterator'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
          5        SEND_VAR_NO_REF_EX                                       $4
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $3
    6     8      > JMP                                                      ->30
    8     9    >   INIT_METHOD_CALL                                         !1, 'isDot'
         10        DO_FCALL                                      0  $8      
         11        BOOL_NOT                                         ~9      $8
         12      > JMPZ                                                     ~9, ->28
   10    13    >   INIT_METHOD_CALL                                         !1, 'getSubPathName'
         14        DO_FCALL                                      0  $10     
         15        CONCAT                                           ~11     'SubPathName%3A+', $10
         16        CONCAT                                           ~12     ~11, '%0A'
         17        ECHO                                                     ~12
   11    18        INIT_METHOD_CALL                                         !1, 'getSubPath'
         19        DO_FCALL                                      0  $13     
         20        CONCAT                                           ~14     'SubPath%3A+++++', $13
         21        CONCAT                                           ~15     ~14, '%0A'
         22        ECHO                                                     ~15
   12    23        INIT_METHOD_CALL                                         !1, 'key'
         24        DO_FCALL                                      0  $16     
         25        CONCAT                                           ~17     'Key%3A+++++++++', $16
         26        CONCAT                                           ~18     ~17, '%0A%0A'
         27        ECHO                                                     ~18
   15    28    >   INIT_METHOD_CALL                                         !1, 'next'
         29        DO_FCALL                                      0          
    6    30    >   INIT_METHOD_CALL                                         !1, 'valid'
         31        DO_FCALL                                      0  $20     
         32      > JMPNZ                                                    $20, ->9
   16    33    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.44 ms | 1395 KiB | 13 Q