3v4l.org

run code in 300+ PHP versions simultaneously
<?php $root = scandir('/'); foreach($root as &$directory){ 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 = 13
Branch analysis from position: 5
2 jumps found. (Code = 126) Position 1 = 6, Position 2 = 13
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/PvOmc
function name:  (null)
number of ops:  15
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, ->13
          5    > > FE_FETCH_RW                                              $4, !1, ->13
    4     6    >   INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'scandir'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
    3    12      > JMP                                                      ->5
         13    >   FE_FREE                                                  $4
    5    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.29 ms | 1386 KiB | 17 Q