3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path = dirname(__FILE__); ini_set('open_basedir', NULL); var_dump(glob("$path/*.none")); var_dump(glob("$path/?.none")); var_dump(glob("$path/*{hello,world}.none")); var_dump(glob("$path/*/nothere")); var_dump(glob("$path/[aoeu]*.none")); var_dump(glob("$path/directly_not_exists")); ini_set('open_basedir', $path); var_dump(glob("$path/*.none")); var_dump(glob("$path/?.none")); var_dump(glob("$path/*{hello,world}.none")); var_dump(glob("$path/*/nothere")); var_dump(glob("$path/[aoeu]*.none")); var_dump(glob("$path/directly_not_exists")); ini_set('open_basedir', '/tmp'); var_dump(glob("$path/*.none")); var_dump(glob("$path/?.none")); var_dump(glob("$path/*{hello,world}.none")); var_dump(glob("$path/*/nothere")); var_dump(glob("$path/[aoeu]*.none")); var_dump(glob("$path/directly_not_exists"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/arPlX
function name:  (null)
number of ops:  161
compiled vars:  !0 = $path
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'dirname'
          1        SEND_VAL                                                 '%2Fin%2FarPlX'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    4     4        INIT_FCALL                                               'ini_set'
          5        SEND_VAL                                                 'open_basedir'
          6        SEND_VAL                                                 null
          7        DO_ICALL                                                 
    5     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'glob'
         10        NOP                                                      
         11        FAST_CONCAT                                      ~4      !0, '%2F%2A.none'
         12        SEND_VAL                                                 ~4
         13        DO_ICALL                                         $5      
         14        SEND_VAR                                                 $5
         15        DO_ICALL                                                 
    6    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'glob'
         18        NOP                                                      
         19        FAST_CONCAT                                      ~7      !0, '%2F%3F.none'
         20        SEND_VAL                                                 ~7
         21        DO_ICALL                                         $8      
         22        SEND_VAR                                                 $8
         23        DO_ICALL                                                 
    7    24        INIT_FCALL                                               'var_dump'
         25        INIT_FCALL                                               'glob'
         26        NOP                                                      
         27        FAST_CONCAT                                      ~10     !0, '%2F%2A%7Bhello%2Cworld%7D.none'
         28        SEND_VAL                                                 ~10
         29        DO_ICALL                                         $11     
         30        SEND_VAR                                                 $11
         31        DO_ICALL                                                 
    8    32        INIT_FCALL                                               'var_dump'
         33        INIT_FCALL                                               'glob'
         34        NOP                                                      
         35        FAST_CONCAT                                      ~13     !0, '%2F%2A%2Fnothere'
         36        SEND_VAL                                                 ~13
         37        DO_ICALL                                         $14     
         38        SEND_VAR                                                 $14
         39        DO_ICALL                                                 
    9    40        INIT_FCALL                                               'var_dump'
         41        INIT_FCALL                                               'glob'
         42        NOP                                                      
         43        FAST_CONCAT                                      ~16     !0, '%2F%5Baoeu%5D%2A.none'
         44        SEND_VAL                                                 ~16
         45        DO_ICALL                                         $17     
         46        SEND_VAR                                                 $17
         47        DO_ICALL                                                 
   10    48        INIT_FCALL                                               'var_dump'
         49        INIT_FCALL                                               'glob'
         50        NOP                                                      
         51        FAST_CONCAT                                      ~19     !0, '%2Fdirectly_not_exists'
         52        SEND_VAL                                                 ~19
         53        DO_ICALL                                         $20     
         54        SEND_VAR                                                 $20
         55        DO_ICALL                                                 
   12    56        INIT_FCALL                                               'ini_set'
         57        SEND_VAL                                                 'open_basedir'
         58        SEND_VAR                                                 !0
         59        DO_ICALL                                                 
   13    60        INIT_FCALL                                               'var_dump'
         61        INIT_FCALL                                               'glob'
         62        NOP                                                      
         63        FAST_CONCAT                                      ~23     !0, '%2F%2A.none'
         64        SEND_VAL                                                 ~23
         65        DO_ICALL                                         $24     
         66        SEND_VAR                                                 $24
         67        DO_ICALL                                                 
   14    68        INIT_FCALL                                               'var_dump'
         69        INIT_FCALL                                               'glob'
         70        NOP                                                      
         71        FAST_CONCAT                                      ~26     !0, '%2F%3F.none'
         72        SEND_VAL                                                 ~26
         73        DO_ICALL                                         $27     
         74        SEND_VAR                                                 $27
         75        DO_ICALL                                                 
   15    76        INIT_FCALL                                               'var_dump'
         77        INIT_FCALL                                               'glob'
         78        NOP                                                      
         79        FAST_CONCAT                                      ~29     !0, '%2F%2A%7Bhello%2Cworld%7D.none'
         80        SEND_VAL                                                 ~29
         81        DO_ICALL                                         $30     
         82        SEND_VAR                                                 $30
         83        DO_ICALL                                                 
   16    84        INIT_FCALL                                               'var_dump'
         85        INIT_FCALL                                               'glob'
         86        NOP                                                      
         87        FAST_CONCAT                                      ~32     !0, '%2F%2A%2Fnothere'
         88        SEND_VAL                                                 ~32
         89        DO_ICALL                                         $33     
         90        SEND_VAR                                                 $33
         91        DO_ICALL                                                 
   17    92        INIT_FCALL                                               'var_dump'
         93        INIT_FCALL                                               'glob'
         94        NOP                                                      
         95        FAST_CONCAT                                      ~35     !0, '%2F%5Baoeu%5D%2A.none'
         96        SEND_VAL                                                 ~35
         97        DO_ICALL                                         $36     
         98        SEND_VAR                                                 $36
         99        DO_ICALL                                                 
   18   100        INIT_FCALL                                               'var_dump'
        101        INIT_FCALL                                               'glob'
        102        NOP                                                      
        103        FAST_CONCAT                                      ~38     !0, '%2Fdirectly_not_exists'
        104        SEND_VAL                                                 ~38
        105        DO_ICALL                                         $39     
        106        SEND_VAR                                                 $39
        107        DO_ICALL                                                 
   20   108        INIT_FCALL                                               'ini_set'
        109        SEND_VAL                                                 'open_basedir'
        110        SEND_VAL                                                 '%2Ftmp'
        111        DO_ICALL                                                 
   21   112        INIT_FCALL                                               'var_dump'
        113        INIT_FCALL                                               'glob'
        114        NOP                                                      
        115        FAST_CONCAT                                      ~42     !0, '%2F%2A.none'
        116        SEND_VAL                                                 ~42
        117        DO_ICALL                                         $43     
        118        SEND_VAR                                                 $43
        119        DO_ICALL                                                 
   22   120        INIT_FCALL                                               'var_dump'
        121        INIT_FCALL                                               'glob'
        122        NOP                                                      
        123        FAST_CONCAT                                      ~45     !0, '%2F%3F.none'
        124        SEND_VAL                                                 ~45
        125        DO_ICALL                                         $46     
        126        SEND_VAR                                                 $46
        127        DO_ICALL                                                 
   23   128        INIT_FCALL                                               'var_dump'
        129        INIT_FCALL                                               'glob'
        130        NOP                                                      
        131        FAST_CONCAT                                      ~48     !0, '%2F%2A%7Bhello%2Cworld%7D.none'
        132        SEND_VAL                                                 ~48
        133        DO_ICALL                                         $49     
        134        SEND_VAR                                                 $49
        135        DO_ICALL                                                 
   24   136        INIT_FCALL                                               'var_dump'
        137        INIT_FCALL                                               'glob'
        138        NOP                                                      
        139        FAST_CONCAT                                      ~51     !0, '%2F%2A%2Fnothere'
        140        SEND_VAL                                                 ~51
        141        DO_ICALL                                         $52     
        142        SEND_VAR                                                 $52
        143        DO_ICALL                                                 
   25   144        INIT_FCALL                                               'var_dump'
        145        INIT_FCALL                                               'glob'
        146        NOP                                                      
        147        FAST_CONCAT                                      ~54     !0, '%2F%5Baoeu%5D%2A.none'
        148        SEND_VAL                                                 ~54
        149        DO_ICALL                                         $55     
        150        SEND_VAR                                                 $55
        151        DO_ICALL                                                 
   26   152        INIT_FCALL                                               'var_dump'
        153        INIT_FCALL                                               'glob'
        154        NOP                                                      
        155        FAST_CONCAT                                      ~57     !0, '%2Fdirectly_not_exists'
        156        SEND_VAL                                                 ~57
        157        DO_ICALL                                         $58     
        158        SEND_VAR                                                 $58
        159        DO_ICALL                                                 
        160      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.24 ms | 1408 KiB | 21 Q