3v4l.org

run code in 300+ PHP versions simultaneously
<?php $it = new RecursiveDirectoryIterator('/'); $it = new RecursiveIteratorIterator($it, RecursiveIteratorIterator::SELF_FIRST); $it->setMaxDepth(1); foreach ($it as $fileinfo) { echo $fileinfo . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 17
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 17
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/2srtn
function name:  (null)
number of ops:  19
compiled vars:  !0 = $it, !1 = $fileinfo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'RecursiveDirectoryIterator'
          1        SEND_VAL_EX                                              '%2F'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        NEW                                              $5      'RecursiveIteratorIterator'
          5        SEND_VAR_EX                                              !0
          6        SEND_VAL_EX                                              1
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !0, $5
    5     9        INIT_METHOD_CALL                                         !0, 'setMaxDepth'
         10        SEND_VAL_EX                                              1
         11        DO_FCALL                                      0          
    7    12      > FE_RESET_R                                       $9      !0, ->17
         13    > > FE_FETCH_R                                               $9, !1, ->17
    8    14    >   CONCAT                                           ~10     !1, '%0A'
         15        ECHO                                                     ~10
    7    16      > JMP                                                      ->13
         17    >   FE_FREE                                                  $9
    9    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.76 ms | 1385 KiB | 13 Q