3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.83 ms | 1385 KiB | 13 Q