3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = new RecursiveDirectoryIterator('.'); $tree = new RecursiveTreeIterator($d); $limit = new LimitIterator($tree, 0, 20); echo '<pre>'; foreach($limit as $element) { var_dump($element);die; echo $element . PHP_EOL; } echo '</pre>';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 24
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 24
Branch analysis from position: 17
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/PTB6k
function name:  (null)
number of ops:  27
compiled vars:  !0 = $d, !1 = $tree, !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      'RecursiveTreeIterator'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $7
    6     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
    8    14        ECHO                                                     '%3Cpre%3E'
    9    15      > FE_RESET_R                                       $13     !2, ->24
         16    > > FE_FETCH_R                                               $13, !3, ->24
   10    17    >   INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !3
         19        DO_ICALL                                                 
         20      > EXIT                                                     
   11    21*       CONCAT                                           ~15     !3, '%0A'
         22*       ECHO                                                     ~15
    9    23*       JMP                                                      ->16
         24    >   FE_FREE                                                  $13
   13    25        ECHO                                                     '%3C%2Fpre%3E'
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.28 ms | 1400 KiB | 15 Q