3v4l.org

run code in 500+ 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:  23
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                                                   'array_fill'
         12        SEND_VAL                                                     0
         13        COUNT                                                ~7      !0
         14        SEND_VAL                                                     ~7
         15        SEND_VAL                                                     '%3F'
         16        DO_ICALL                                             $8      
         17        FRAMELESS_ICALL_2                implode             ~9      '%2C', $8
         18        CONCAT                                               ~10     '%0A++++SELECT+%2A+%0A++++FROM+table+%0A++++WHERE+id+NOT+IN+%28%0A++++++++', ~9
         19        CONCAT                                               ~11     ~10, '%0A++++%29%0A'
   11    20        ASSIGN                                                       !1, ~11
   19    21        ECHO                                                         !1
   20    22      > 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:/in/oU6iB:7}
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.5.0


preferences:
169.58 ms | 2610 KiB | 16 Q