3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_REQUEST=array(); $_REQUEST["username"]=""; $_REQUEST["password"]=""; //echo "SELECT * from users where username=\"".$_REQUEST["username"]."\" and password=\"".$_REQUEST["password"]."\""; echo "SELECT * from users where username=\"".$_REQUEST["username"]."\" or username=\""."\" and password=\"".$_REQUEST["password"]."\" password=\""."\""; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bCIW9
function name:  (null)
number of ops:  20
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                                                  ''
    4     5        FETCH_W                      global              $4      '_REQUEST'
          6        ASSIGN_DIM                                               $4, 'password'
          7        OP_DATA                                                  ''
    6     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+or+username%3D%22'
         12        CONCAT                                           ~10     ~9, '%22+and+password%3D%22'
         13        FETCH_R                      global              ~11     '_REQUEST'
         14        FETCH_DIM_R                                      ~12     ~11, 'password'
         15        CONCAT                                           ~13     ~10, ~12
         16        CONCAT                                           ~14     ~13, '%22+password%3D%22'
         17        CONCAT                                           ~15     ~14, '%22'
         18        ECHO                                                     ~15
    7    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.64 ms | 1393 KiB | 13 Q