3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contents = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(__DIR__)); while ($contents->valid()) { echo $contents->getSubPathName() . "\n"; $contents->next(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 8
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 8
Branch analysis from position: 17
Branch analysis from position: 8
filename:       /in/ll176
function name:  (null)
number of ops:  18
compiled vars:  !0 = $contents
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'RecursiveIteratorIterator'
          1        NEW                                              $2      'RecursiveDirectoryIterator'
          2        SEND_VAL_EX                                              '%2Fin'
          3        DO_FCALL                                      0          
          4        SEND_VAR_NO_REF_EX                                       $2
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $1
    5     7      > JMP                                                      ->14
    6     8    >   INIT_METHOD_CALL                                         !0, 'getSubPathName'
          9        DO_FCALL                                      0  $6      
         10        CONCAT                                           ~7      $6, '%0A'
         11        ECHO                                                     ~7
    7    12        INIT_METHOD_CALL                                         !0, 'next'
         13        DO_FCALL                                      0          
    5    14    >   INIT_METHOD_CALL                                         !0, 'valid'
         15        DO_FCALL                                      0  $9      
         16      > JMPNZ                                                    $9, ->8
    8    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.95 ms | 1433 KiB | 13 Q