3v4l.org

run code in 300+ PHP versions simultaneously
<?php $busquedaDescripcion="Carpeta Azul"; $like=""; $e=explode(" ",$busquedaDescripcion); for ($i=0; $i <count($e); $i++) { $like.= " AND descripcion LIKE '%".$e[$i]."%'"; } $buscar = "SELECT * FROM productos WHERE auxiliar=1 $like"; echo $buscar;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 9
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 9
Branch analysis from position: 17
Branch analysis from position: 9
filename:       /in/ALOWv
function name:  (null)
number of ops:  22
compiled vars:  !0 = $busquedaDescripcion, !1 = $like, !2 = $e, !3 = $i, !4 = $buscar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Carpeta+Azul'
    4     1        ASSIGN                                                   !1, ''
    6     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '+'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !2, $7
    7     7        ASSIGN                                                   !3, 0
          8      > JMP                                                      ->14
    9     9    >   FETCH_DIM_R                                      ~10     !2, !3
         10        CONCAT                                           ~11     '+AND+descripcion+LIKE+%27%25', ~10
         11        CONCAT                                           ~12     ~11, '%25%27'
         12        ASSIGN_OP                                     8          !1, ~12
    7    13        PRE_INC                                                  !3
         14    >   COUNT                                            ~15     !2
         15        IS_SMALLER                                               !3, ~15
         16      > JMPNZ                                                    ~16, ->9
   13    17    >   NOP                                                      
         18        FAST_CONCAT                                      ~17     'SELECT+%2A+FROM++productos+WHERE+auxiliar%3D1+', !1
         19        ASSIGN                                                   !4, ~17
   15    20        ECHO                                                     !4
   16    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.22 ms | 1395 KiB | 15 Q