3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = '1,2,3,4,5,6,7,8,9,10,0);DROP table users'; $var = explode(',', $var); array_walk($var, function(&$value){ $value = (int) $value; }); $sql = ' SELECT * FROM table WHERE id NOT IN ( '.implode(',', array_fill(0, count($var), '?')).' ) '; echo $sql;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oU6iB
function name:  (null)
number of ops:  26
compiled vars:  !0 = $var, !1 = $sql
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1%2C2%2C3%2C4%2C5%2C6%2C7%2C8%2C9%2C10%2C0%29%3BDROP+table+users'
    5     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2C'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !0, $3
    7     6        INIT_FCALL                                               'array_walk'
          7        SEND_REF                                                 !0
          8        DECLARE_LAMBDA_FUNCTION                          ~5      [0]
    9     9        SEND_VAL                                                 ~5
    7    10        DO_ICALL                                                 
   15    11        INIT_FCALL                                               'implode'
         12        SEND_VAL                                                 '%2C'
         13        INIT_FCALL                                               'array_fill'
         14        SEND_VAL                                                 0
         15        COUNT                                            ~7      !0
         16        SEND_VAL                                                 ~7
         17        SEND_VAL                                                 '%3F'
         18        DO_ICALL                                         $8      
         19        SEND_VAR                                                 $8
         20        DO_ICALL                                         $9      
         21        CONCAT                                           ~10     '%0A++++SELECT+%2A+%0A++++FROM+table+%0A++++WHERE+id+NOT+IN+%28%0A++++++++', $9
         22        CONCAT                                           ~11     ~10, '%0A++++%29%0A'
   11    23        ASSIGN                                                   !1, ~11
   19    24        ECHO                                                     !1
   20    25      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oU6iB
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        CAST                                          4  ~1      !0
          2        ASSIGN                                                   !0, ~1
    9     3      > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.01 ms | 1006 KiB | 17 Q