3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.96 ms | 1385 KiB | 13 Q