3v4l.org

run code in 300+ PHP versions simultaneously
<?php $query= " INSERT INTO `mytable` (`id`, `type`, `data`) VALUES ('$id', '$type', '$data') ; SELECT * FROM `mytable` WHERE `type` = '$type' ORDER BY DESC LIMIT 10 ;";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BiUFG
function name:  (null)
number of ops:  11
compiled vars:  !0 = $query, !1 = $id, !2 = $type, !3 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ROPE_INIT                                     9  ~5      '%0A++++INSERT+INTO+%60mytable%60+%28%60id%60%2C+%60type%60%2C+%60data%60%29+%0A++++VALUES+%28%27'
    4     1        ROPE_ADD                                      1  ~5      ~5, !1
          2        ROPE_ADD                                      2  ~5      ~5, '%27%2C+%27'
          3        ROPE_ADD                                      3  ~5      ~5, !2
          4        ROPE_ADD                                      4  ~5      ~5, '%27%2C+%27'
          5        ROPE_ADD                                      5  ~5      ~5, !3
          6        ROPE_ADD                                      6  ~5      ~5, '%27%29%0A++++%3B++++%0A++++SELECT+%2A+%0A++++FROM+%60mytable%60+%0A++++WHERE+%60type%60+%3D+%27'
    8     7        ROPE_ADD                                      7  ~5      ~5, !2
          8        ROPE_END                                      8  ~4      ~5, '%27+%0A++++ORDER+BY+DESC+%0A++++LIMIT+10%0A++++%3B'
    2     9        ASSIGN                                                   !0, ~4
   11    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.18 ms | 1397 KiB | 13 Q