3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contents = new RecursiveCallbackFilterIterator( new RecursiveDirectoryIterator(__DIR__), function ($current, $key, $iterator): bool { return true; }, ); $contents->rewind(); while ($contents->valid()) { echo $contents->getSubPathName() . "\n"; $contents->next(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 12
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 12
Branch analysis from position: 21
Branch analysis from position: 12
filename:       /in/EXv3T
function name:  (null)
number of ops:  22
compiled vars:  !0 = $contents
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'RecursiveCallbackFilterIterator'
    4     1        NEW                                              $2      'RecursiveDirectoryIterator'
          2        SEND_VAL_EX                                              '%2Fin'
          3        DO_FCALL                                      0          
          4        SEND_VAR_NO_REF_EX                                       $2
    5     5        DECLARE_LAMBDA_FUNCTION                          ~4      [0]
    7     6        SEND_VAL_EX                                              ~4
    3     7        DO_FCALL                                      0          
          8        ASSIGN                                                   !0, $1
   11     9        INIT_METHOD_CALL                                         !0, 'rewind'
         10        DO_FCALL                                      0          
   12    11      > JMP                                                      ->18
   13    12    >   INIT_METHOD_CALL                                         !0, 'getSubPathName'
         13        DO_FCALL                                      0  $8      
         14        CONCAT                                           ~9      $8, '%0A'
         15        ECHO                                                     ~9
   14    16        INIT_METHOD_CALL                                         !0, 'next'
         17        DO_FCALL                                      0          
   12    18    >   INIT_METHOD_CALL                                         !0, 'valid'
         19        DO_FCALL                                      0  $11     
         20      > JMPNZ                                                    $11, ->12
   15    21    > > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EXv3T
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $current, !1 = $key, !2 = $iterator
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    6     3      > RETURN                                                   <true>
    7     4*       VERIFY_RETURN_TYPE                                       
          5*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
121.58 ms | 1434 KiB | 13 Q