3v4l.org

run code in 300+ PHP versions simultaneously
<?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 = 5, Position 2 = 49
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 49
filename:       /in/9URfW
function name:  (null)
number of ops:  50
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 >   FETCH_R                      global              ~6      '_GET'
          1        FETCH_DIM_R                                      ~7      ~6, 'type'
          2        ASSIGN                                                   !0, ~7
    3     3        IS_EQUAL                                                 !0, 'loot'
          4      > JMPZ                                                     ~9, ->49
    4     5    >   INIT_FCALL                                               'htmlspecialchars'
          6        FETCH_R                      global              ~10     '_GET'
          7        FETCH_DIM_R                                      ~11     ~10, 'item'
          8        SEND_VAL                                                 ~11
          9        DO_ICALL                                         $12     
         10        ASSIGN                                                   !1, $12
    5    11        INIT_FCALL                                               'htmlspecialchars'
         12        FETCH_R                      global              ~14     '_GET'
         13        FETCH_DIM_R                                      ~15     ~14, 'itemid'
         14        SEND_VAL                                                 ~15
         15        DO_ICALL                                         $16     
         16        ASSIGN                                                   !2, $16
    6    17        INIT_FCALL                                               'htmlspecialchars'
         18        FETCH_R                      global              ~18     '_GET'
         19        FETCH_DIM_R                                      ~19     ~18, 'itemimage'
         20        SEND_VAL                                                 ~19
         21        DO_ICALL                                         $20     
         22        ASSIGN                                                   !3, $20
    7    23        INIT_FCALL                                               'htmlspecialchars'
         24        FETCH_R                      global              ~22     '_GET'
         25        FETCH_DIM_R                                      ~23     ~22, 'enemies'
         26        SEND_VAL                                                 ~23
         27        DO_ICALL                                         $24     
         28        ASSIGN                                                   !4, $24
    8    29        INIT_FCALL                                               'htmlspecialchars'
         30        FETCH_R                      global              ~26     '_GET'
         31        FETCH_DIM_R                                      ~27     ~26, 'players'
         32        SEND_VAL                                                 ~27
         33        DO_ICALL                                         $28     
         34        ASSIGN                                                   !5, $28
   11    35        INIT_FCALL_BY_NAME                                       'mysql_query'
         36        ROPE_INIT                                    11  ~31     'INSERT+INTO+test_loots+%28itemid%2C+itemimage%2C+enemies%2C+players%2C+item%29+VALUES+%28%27'
         37        ROPE_ADD                                      1  ~31     ~31, !2
         38        ROPE_ADD                                      2  ~31     ~31, '%27%2C+%27'
         39        ROPE_ADD                                      3  ~31     ~31, !3
         40        ROPE_ADD                                      4  ~31     ~31, '%27%2C+%27'
         41        ROPE_ADD                                      5  ~31     ~31, !4
         42        ROPE_ADD                                      6  ~31     ~31, '%27%2C+%27'
         43        ROPE_ADD                                      7  ~31     ~31, !5
         44        ROPE_ADD                                      8  ~31     ~31, '%27%2C+%27'
         45        ROPE_ADD                                      9  ~31     ~31, !1
         46        ROPE_END                                     10  ~30     ~31, '%27%29'
         47        SEND_VAL_EX                                              ~30
         48        DO_FCALL                                      0          
   27    49    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.86 ms | 1400 KiB | 15 Q