3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search = "a%' OR 'a'='a "; $sql = "SELECT * FROM caffaine WHERE itemname LIKE '%" . $search . "%' OR itemdesc LIKE '%" . $search . "%' OR categ LIKE '%" . $search . "%'"; echo $sql;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/isjsi
function name:  (null)
number of ops:  10
compiled vars:  !0 = $search, !1 = $sql
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'a%25%27+OR+%27a%27%3D%27a+'
    3     1        CONCAT                                           ~3      'SELECT+%2A+FROM+caffaine+WHERE+itemname+LIKE+%27%25', !0
          2        CONCAT                                           ~4      ~3, '%25%27+OR+itemdesc+LIKE+%27%25'
          3        CONCAT                                           ~5      ~4, !0
          4        CONCAT                                           ~6      ~5, '%25%27+OR+categ+LIKE+%27%25'
          5        CONCAT                                           ~7      ~6, !0
          6        CONCAT                                           ~8      ~7, '%25%27'
          7        ASSIGN                                                   !1, ~8
    4     8        ECHO                                                     !1
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.59 ms | 1392 KiB | 13 Q