3v4l.org

run code in 300+ PHP versions simultaneously
<?php require_once('inc/config.php'); require_once('header.php'); $botid = preg_replace("/[^0-9]/","",$_GET['id']); ?> <div class="grid_24"> <!-- Box Header: Start --> <div class="box_top"> <h2 class="icon typography">Logs for bot <?php echo $botid; ?></h2> </div> <!-- Box Header: End --> <!-- Box Content: Start --> <div class="box_content padding"> <div style="float: left; display: inline; width: 265px; word-break: break-all; word-wrap: break-word;"> <?php if(file_exists("uploads/".$botid.".html")) { echo file_get_contents("uploads/".$botid.".html"); } else{ echo 'No logs!'; } ?> </div> </div> <?php include("html/footer.php"); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 26
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pBYE1
function name:  (null)
number of ops:  30
compiled vars:  !0 = $botid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INCLUDE_OR_EVAL                                          'inc%2Fconfig.php', REQUIRE_ONCE
    3     1        INCLUDE_OR_EVAL                                          'header.php', REQUIRE_ONCE
    5     2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%2F%5B%5E0-9%5D%2F'
          4        SEND_VAL                                                 ''
          5        FETCH_R                      global              ~3      '_GET'
          6        FETCH_DIM_R                                      ~4      ~3, 'id'
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !0, $5
    8    10        ECHO                                                     '%0A%0A%09+%3Cdiv+class%3D%22grid_24%22%3E%0A%0A%09%3C%21--+Box+Header%3A+Start+--%3E%0A%09%3Cdiv+class%3D%22box_top%22%3E%0A%09%09%0A%09%09%3Ch2+class%3D%22icon+typography%22%3ELogs+for+bot+'
   15    11        ECHO                                                     !0
         12        ECHO                                                     '%3C%2Fh2%3E%0A%09%09%0A%09%3C%2Fdiv%3E%0A%09%3C%21--+Box+Header%3A+End+--%3E%0A%09%0A%09%3C%21--+Box+Content%3A+Start+--%3E%0A%09%0A%09%3Cdiv+class%3D%22box_content+padding%22%3E%0A%09%3Cdiv+style%3D%22float%3A+left%3B+display%3A+inline%3B+width%3A+265px%3B+word-break%3A+break-all%3B+word-wrap%3A+break-word%3B%22%3E%0A+++%0A'
   26    13        INIT_FCALL                                               'file_exists'
         14        CONCAT                                           ~7      'uploads%2F', !0
         15        CONCAT                                           ~8      ~7, '.html'
         16        SEND_VAL                                                 ~8
         17        DO_ICALL                                         $9      
         18      > JMPZ                                                     $9, ->26
   28    19    >   INIT_FCALL                                               'file_get_contents'
         20        CONCAT                                           ~10     'uploads%2F', !0
         21        CONCAT                                           ~11     ~10, '.html'
         22        SEND_VAL                                                 ~11
         23        DO_ICALL                                         $12     
         24        ECHO                                                     $12
         25      > JMP                                                      ->27
   30    26    >   ECHO                                                     'No+logs%21'
   33    27    >   ECHO                                                     '+++%3C%2Fdiv%3E%0A%3C%2Fdiv%3E%0A'
   36    28        INCLUDE_OR_EVAL                                          'html%2Ffooter.php', INCLUDE
   37    29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.66 ms | 1396 KiB | 19 Q