3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_REQUEST=["username => user","password => pass"]; 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/W35CG
function name:  (null)
number of ops:  12
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_R                      global              ~2      '_REQUEST'
          3        FETCH_DIM_R                                      ~3      ~2, 'username'
          4        CONCAT                                           ~4      'SELECT+%2A+from+users+where+username%3D%22', ~3
          5        CONCAT                                           ~5      ~4, '%22+and+password%3D%22'
          6        FETCH_R                      global              ~6      '_REQUEST'
          7        FETCH_DIM_R                                      ~7      ~6, 'password'
          8        CONCAT                                           ~8      ~5, ~7
          9        CONCAT                                           ~9      ~8, '%22'
         10        ECHO                                                     ~9
    4    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.67 ms | 1393 KiB | 13 Q