3v4l.org

run code in 300+ PHP versions simultaneously
<?php //will got current directory list $glob = glob('./*'); print_r($glob); //will got nothing? $glob = new GlobIterator('./*'); print_r(iterator_to_array($glob));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H62a3
function name:  (null)
number of ops:  18
compiled vars:  !0 = $glob
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'glob'
          1        SEND_VAL                                                 '.%2F%2A'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    4     4        INIT_FCALL                                               'print_r'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    7     7        NEW                                              $4      'GlobIterator'
          8        SEND_VAL_EX                                              '.%2F%2A'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !0, $4
    8    11        INIT_FCALL                                               'print_r'
         12        INIT_FCALL                                               'iterator_to_array'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $7      
         15        SEND_VAR                                                 $7
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.87 ms | 1394 KiB | 19 Q