3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r(scandir($_SERVER['DOCUMENT_ROOT'] . $_SERVER['PHP_SELF'] . '/..'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Fq7cd
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'print_r'
          1        INIT_FCALL                                               'scandir'
          2        FETCH_R                      global              ~0      '_SERVER'
          3        FETCH_DIM_R                                      ~1      ~0, 'DOCUMENT_ROOT'
          4        FETCH_R                      global              ~2      '_SERVER'
          5        FETCH_DIM_R                                      ~3      ~2, 'PHP_SELF'
          6        CONCAT                                           ~4      ~1, ~3
          7        CONCAT                                           ~5      ~4, '%2F..'
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                         $6      
         10        SEND_VAR                                                 $6
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.66 ms | 1394 KiB | 17 Q