3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contents = new RecursiveCallbackFilterIterator( new RecursiveDirectoryIterator(__DIR__), function ($current, $key, $iterator): bool { return true; }, ); while ($contents->valid()) { echo $contents->getSubPathName() . "\n"; $contents->next(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 10
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 10
Branch analysis from position: 19
Branch analysis from position: 10
filename:       /in/MM7kZ
function name:  (null)
number of ops:  20
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
   10     9      > JMP                                                      ->16
   11    10    >   INIT_METHOD_CALL                                         !0, 'getSubPathName'
         11        DO_FCALL                                      0  $7      
         12        CONCAT                                           ~8      $7, '%0A'
         13        ECHO                                                     ~8
   12    14        INIT_METHOD_CALL                                         !0, 'next'
         15        DO_FCALL                                      0          
   10    16    >   INIT_METHOD_CALL                                         !0, 'valid'
         17        DO_FCALL                                      0  $10     
         18      > JMPNZ                                                    $10, ->10
   13    19    > > 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/MM7kZ
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:
138.4 ms | 1443 KiB | 13 Q