3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_REQUEST=array(); $_REQUEST["username"]=" OR == TRUE"; $_REQUEST["password"]=" OR == TRUE"; echo "SELECT * from users where username=\"".$_REQUEST["username"]."\" and password=\"".$_REQUEST["password"]."\""; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9Fpci
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_W                      global              $0      '_REQUEST'
          1        ASSIGN                                                   $0, <array>
    3     2        FETCH_W                      global              $2      '_REQUEST'
          3        ASSIGN_DIM                                               $2, 'username'
          4        OP_DATA                                                  '+OR+%3D%3D+TRUE'
    4     5        FETCH_W                      global              $4      '_REQUEST'
          6        ASSIGN_DIM                                               $4, 'password'
          7        OP_DATA                                                  '+OR+%3D%3D+TRUE'
    5     8        FETCH_R                      global              ~6      '_REQUEST'
          9        FETCH_DIM_R                                      ~7      ~6, 'username'
         10        CONCAT                                           ~8      'SELECT+%2A+from+users+where+username%3D%22', ~7
         11        CONCAT                                           ~9      ~8, '%22+and+password%3D%22'
         12        FETCH_R                      global              ~10     '_REQUEST'
         13        FETCH_DIM_R                                      ~11     ~10, 'password'
         14        CONCAT                                           ~12     ~9, ~11
         15        CONCAT                                           ~13     ~12, '%22'
         16        ECHO                                                     ~13
    6    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.72 ms | 1384 KiB | 13 Q