3v4l.org

run code in 300+ PHP versions simultaneously
<?php include 'functions.php'; $typ = $_GET['type']; if($typ == 'loot'){ $item = htmlspecialchars($_GET['item']); $itemid = htmlspecialchars($_GET['itemid']); $itemimage = htmlspecialchars($_GET['itemimage']); $enemies = htmlspecialchars($_GET['enemies']); $players = htmlspecialchars($_GET['players']); //if(!($item || $itemid || $itemimage || $enemies || $players)){ mysql_query("INSERT INTO test_loots (itemid, itemimage, enemies, players, item) VALUES ('$itemid', '$itemimage', '$enemies', '$players', '$item')"); //} } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 50
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 50
filename:       /in/8pR1C
function name:  (null)
number of ops:  51
compiled vars:  !0 = $typ, !1 = $item, !2 = $itemid, !3 = $itemimage, !4 = $enemies, !5 = $players
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INCLUDE_OR_EVAL                                          'functions.php', INCLUDE
    3     1        FETCH_R                      global              ~7      '_GET'
          2        FETCH_DIM_R                                      ~8      ~7, 'type'
          3        ASSIGN                                                   !0, ~8
    4     4        IS_EQUAL                                                 !0, 'loot'
          5      > JMPZ                                                     ~10, ->50
    5     6    >   INIT_FCALL                                               'htmlspecialchars'
          7        FETCH_R                      global              ~11     '_GET'
          8        FETCH_DIM_R                                      ~12     ~11, 'item'
          9        SEND_VAL                                                 ~12
         10        DO_ICALL                                         $13     
         11        ASSIGN                                                   !1, $13
    6    12        INIT_FCALL                                               'htmlspecialchars'
         13        FETCH_R                      global              ~15     '_GET'
         14        FETCH_DIM_R                                      ~16     ~15, 'itemid'
         15        SEND_VAL                                                 ~16
         16        DO_ICALL                                         $17     
         17        ASSIGN                                                   !2, $17
    7    18        INIT_FCALL                                               'htmlspecialchars'
         19        FETCH_R                      global              ~19     '_GET'
         20        FETCH_DIM_R                                      ~20     ~19, 'itemimage'
         21        SEND_VAL                                                 ~20
         22        DO_ICALL                                         $21     
         23        ASSIGN                                                   !3, $21
    8    24        INIT_FCALL                                               'htmlspecialchars'
         25        FETCH_R                      global              ~23     '_GET'
         26        FETCH_DIM_R                                      ~24     ~23, 'enemies'
         27        SEND_VAL                                                 ~24
         28        DO_ICALL                                         $25     
         29        ASSIGN                                                   !4, $25
    9    30        INIT_FCALL                                               'htmlspecialchars'
         31        FETCH_R                      global              ~27     '_GET'
         32        FETCH_DIM_R                                      ~28     ~27, 'players'
         33        SEND_VAL                                                 ~28
         34        DO_ICALL                                         $29     
         35        ASSIGN                                                   !5, $29
   12    36        INIT_FCALL_BY_NAME                                       'mysql_query'
         37        ROPE_INIT                                    11  ~32     'INSERT+INTO+test_loots+%28itemid%2C+itemimage%2C+enemies%2C+players%2C+item%29+VALUES+%28%27'
         38        ROPE_ADD                                      1  ~32     ~32, !2
         39        ROPE_ADD                                      2  ~32     ~32, '%27%2C+%27'
         40        ROPE_ADD                                      3  ~32     ~32, !3
         41        ROPE_ADD                                      4  ~32     ~32, '%27%2C+%27'
         42        ROPE_ADD                                      5  ~32     ~32, !4
         43        ROPE_ADD                                      6  ~32     ~32, '%27%2C+%27'
         44        ROPE_ADD                                      7  ~32     ~32, !5
         45        ROPE_ADD                                      8  ~32     ~32, '%27%2C+%27'
         46        ROPE_ADD                                      9  ~32     ~32, !1
         47        ROPE_END                                     10  ~31     ~32, '%27%29'
         48        SEND_VAL_EX                                              ~31
         49        DO_FCALL                                      0          
   28    50    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.37 ms | 1400 KiB | 15 Q