3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contents = new RecursiveCallbackFilterIterator( new RecursiveDirectoryIterator(__DIR__), function ($current, $key, $iterator): bool { return true; }, ); foreach ($contents as $path) { echo $path->getPathName() . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 16
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/vCif6
function name:  (null)
number of ops:  18
compiled vars:  !0 = $contents, !1 = $path
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'RecursiveCallbackFilterIterator'
    4     1        NEW                                              $3      'RecursiveDirectoryIterator'
          2        SEND_VAL_EX                                              '%2Fin'
          3        DO_FCALL                                      0          
          4        SEND_VAR_NO_REF_EX                                       $3
    5     5        DECLARE_LAMBDA_FUNCTION                          ~5      [0]
    7     6        SEND_VAL_EX                                              ~5
    3     7        DO_FCALL                                      0          
          8        ASSIGN                                                   !0, $2
   10     9      > FE_RESET_R                                       $8      !0, ->16
         10    > > FE_FETCH_R                                               $8, !1, ->16
   11    11    >   INIT_METHOD_CALL                                         !1, 'getPathName'
         12        DO_FCALL                                      0  $9      
         13        CONCAT                                           ~10     $9, '%0A'
         14        ECHO                                                     ~10
   10    15      > JMP                                                      ->10
         16    >   FE_FREE                                                  $8
   12    17      > 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/vCif6
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:
145.32 ms | 1008 KiB | 13 Q