3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contents = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(__DIR__)); $contents->rewind(); // dont forget to rewind while ($contents->valid()) { echo $contents->getSubPathName() . "\n"; $contents->next(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 10
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 10
Branch analysis from position: 19
Branch analysis from position: 10
filename:       /in/vHY8J
function name:  (null)
number of ops:  20
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        INIT_METHOD_CALL                                         !0, 'rewind'
          8        DO_FCALL                                      0          
    6     9      > JMP                                                      ->16
    7    10    >   INIT_METHOD_CALL                                         !0, 'getSubPathName'
         11        DO_FCALL                                      0  $7      
         12        CONCAT                                           ~8      $7, '%0A'
         13        ECHO                                                     ~8
    8    14        INIT_METHOD_CALL                                         !0, 'next'
         15        DO_FCALL                                      0          
    6    16    >   INIT_METHOD_CALL                                         !0, 'valid'
         17        DO_FCALL                                      0  $10     
         18      > JMPNZ                                                    $10, ->10
    9    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.08 ms | 1433 KiB | 13 Q