3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.07 ms | 1394 KiB | 13 Q