3v4l.org

run code in 300+ PHP versions simultaneously
<?php $it = new RecursiveDirectoryIterator('/var/tmp/phpfarm/'); $it = new RecursiveIteratorIterator($it, RecursiveIteratorIterator::SELF_FIRST); $it->setMaxDepth(4); foreach (new LimitIterator($it, 0, 100) as $fileinfo) { echo $fileinfo . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 18, Position 2 = 22
Branch analysis from position: 18
2 jumps found. (Code = 78) Position 1 = 19, Position 2 = 22
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/07Yec
function name:  (null)
number of ops:  24
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                                              '%2Fvar%2Ftmp%2Fphpfarm%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                                              4
         11        DO_FCALL                                      0          
    7    12        NEW                                              $9      'LimitIterator'
         13        SEND_VAR_EX                                              !0
         14        SEND_VAL_EX                                              0
         15        SEND_VAL_EX                                              100
         16        DO_FCALL                                      0          
         17      > FE_RESET_R                                       $11     $9, ->22
         18    > > FE_FETCH_R                                               $11, !1, ->22
    8    19    >   CONCAT                                           ~12     !1, '%0A'
         20        ECHO                                                     ~12
    7    21      > JMP                                                      ->18
         22    >   FE_FREE                                                  $11
    9    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.69 ms | 1394 KiB | 13 Q