3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r($_SERVER); foreach(glob('lib/*') as $o) { echo dirname("$o").PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 16
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/aMbQL
function name:  (null)
number of ops:  18
compiled vars:  !0 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'print_r'
          1        FETCH_R                      global              ~1      '_SERVER'
          2        SEND_VAL                                                 ~1
          3        DO_ICALL                                                 
    5     4        INIT_FCALL                                               'glob'
          5        SEND_VAL                                                 'lib%2F%2A'
          6        DO_ICALL                                         $3      
          7      > FE_RESET_R                                       $4      $3, ->16
          8    > > FE_FETCH_R                                               $4, !0, ->16
    7     9    >   INIT_FCALL                                               'dirname'
         10        CAST                                          6  ~5      !0
         11        SEND_VAL                                                 ~5
         12        DO_ICALL                                         $6      
         13        CONCAT                                           ~7      $6, '%0A'
         14        ECHO                                                     ~7
    5    15      > JMP                                                      ->8
         16    >   FE_FREE                                                  $4
    8    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.08 ms | 1395 KiB | 19 Q