3v4l.org

run code in 300+ PHP versions simultaneously
<?php $root = scandir('/'); foreach($root as &$directory){ echo "--- ".$directory." ---\n"; var_dump(scandir($directory)); }

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 5, Position 2 = 16
Branch analysis from position: 5
2 jumps found. (Code = 126) Position 1 = 6, Position 2 = 16
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/uLMBV
function name:  (null)
number of ops:  18
compiled vars:  !0 = $root, !1 = $directory
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'scandir'
          1        SEND_VAL                                                 '%2F'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    3     4      > FE_RESET_RW                                      $4      !0, ->16
          5    > > FE_FETCH_RW                                              $4, !1, ->16
    4     6    >   CONCAT                                           ~5      '---+', !1
          7        CONCAT                                           ~6      ~5, '+---%0A'
          8        ECHO                                                     ~6
    5     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'scandir'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $7      
         13        SEND_VAR                                                 $7
         14        DO_ICALL                                                 
    3    15      > JMP                                                      ->5
         16    >   FE_FREE                                                  $4
    6    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.07 ms | 1395 KiB | 17 Q