3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Source: https://bugs.php.net/bug.php?id=67359 try { $rdi = new recursiveDirectoryIterator('/etc/ssl', FilesystemIterator::SKIP_DOTS | FilesystemIterator::UNIX_PATHS); $it = new recursiveIteratorIterator( $rdi ); $it->seek(1); while( $it->valid()) { if( $it->isFile() ) { echo $it->current()."\n"; } $it->next(); } echo $it->current(); } catch(Exception $e) { echo $e->getMessage(); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 13
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 20
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 13
Branch analysis from position: 25
Branch analysis from position: 13
Branch analysis from position: 20
Found catch point at position: 29
Branch analysis from position: 29
2 jumps found. (Code = 107) Position 1 = 30, Position 2 = -2
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZI7NS
function name:  (null)
number of ops:  34
compiled vars:  !0 = $rdi, !1 = $it, !2 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $3      'recursiveDirectoryIterator'
          1        SEND_VAL_EX                                              '%2Fetc%2Fssl'
          2        SEND_VAL_EX                                              12288
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $3
    7     5        NEW                                              $6      'recursiveIteratorIterator'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $6
    8     9        INIT_METHOD_CALL                                         !1, 'seek'
         10        SEND_VAL_EX                                              1
         11        DO_FCALL                                      0          
    9    12      > JMP                                                      ->22
   11    13    >   INIT_METHOD_CALL                                         !1, 'isFile'
         14        DO_FCALL                                      0  $10     
         15      > JMPZ                                                     $10, ->20
   13    16    >   INIT_METHOD_CALL                                         !1, 'current'
         17        DO_FCALL                                      0  $11     
         18        CONCAT                                           ~12     $11, '%0A'
         19        ECHO                                                     ~12
   16    20    >   INIT_METHOD_CALL                                         !1, 'next'
         21        DO_FCALL                                      0          
    9    22    >   INIT_METHOD_CALL                                         !1, 'valid'
         23        DO_FCALL                                      0  $14     
         24      > JMPNZ                                                    $14, ->13
   19    25    >   INIT_METHOD_CALL                                         !1, 'current'
         26        DO_FCALL                                      0  $15     
         27        ECHO                                                     $15
         28      > JMP                                                      ->33
   21    29  E > > CATCH                                       last         'Exception'
   23    30    >   INIT_METHOD_CALL                                         !2, 'getMessage'
         31        DO_FCALL                                      0  $16     
         32        ECHO                                                     $16
   25    33    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.91 ms | 1395 KiB | 13 Q