3v4l.org

run code in 300+ PHP versions simultaneously
<?php // ANYTHING WRONG THIS CODE? $file_path = get_template_directory().'/users/'.$_GET['user'].'/'.$_GET['file']; if( file_exists($file_path) ) { ob_clean(); flush(); readfile( $file_path ); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 22
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/kd03r
function name:  (null)
number of ops:  23
compiled vars:  !0 = $file_path
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL_BY_NAME                                       'get_template_directory'
          1        DO_FCALL                                      0  $1      
          2        CONCAT                                           ~2      $1, '%2Fusers%2F'
          3        FETCH_R                      global              ~3      '_GET'
          4        FETCH_DIM_R                                      ~4      ~3, 'user'
          5        CONCAT                                           ~5      ~2, ~4
          6        CONCAT                                           ~6      ~5, '%2F'
          7        FETCH_R                      global              ~7      '_GET'
          8        FETCH_DIM_R                                      ~8      ~7, 'file'
          9        CONCAT                                           ~9      ~6, ~8
         10        ASSIGN                                                   !0, ~9
    5    11        INIT_FCALL                                               'file_exists'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $11     
         14      > JMPZ                                                     $11, ->22
    6    15    >   INIT_FCALL                                               'ob_clean'
         16        DO_ICALL                                                 
    7    17        INIT_FCALL                                               'flush'
         18        DO_ICALL                                                 
    8    19        INIT_FCALL                                               'readfile'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                                 
    9    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.41 ms | 1395 KiB | 21 Q