3v4l.org

run code in 300+ PHP versions simultaneously
<?php require_once 'config.php'; $query = "SELECT * FROM new_members WHERE member_name='Admin' AND passwd='" . utf8_decode(mysql_real_escape_string(test)) . "' LIMIT 1"; $sql = mysql_query($query); $row = mysql_fetch_assoc($sql); if ($row) { echo '<h2>Welcome Admin</h2>'; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 21
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/fBoFh
function name:  (null)
number of ops:  22
compiled vars:  !0 = $query, !1 = $sql, !2 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INCLUDE_OR_EVAL                                          'config.php', REQUIRE_ONCE
    5     1        INIT_FCALL                                               'utf8_decode'
          2        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
          3        FETCH_CONSTANT                                   ~4      'test'
          4        SEND_VAL_EX                                              ~4
          5        DO_FCALL                                      0  $5      
          6        SEND_VAR                                                 $5
          7        DO_ICALL                                         $6      
          8        CONCAT                                           ~7      'SELECT+%2A+FROM+new_members+WHERE+member_name%3D%27Admin%27+AND+passwd%3D%27', $6
          9        CONCAT                                           ~8      ~7, '%27+LIMIT+1'
    4    10        ASSIGN                                                   !0, ~8
    7    11        INIT_FCALL_BY_NAME                                       'mysql_query'
         12        SEND_VAR_EX                                              !0
         13        DO_FCALL                                      0  $10     
         14        ASSIGN                                                   !1, $10
    8    15        INIT_FCALL_BY_NAME                                       'mysql_fetch_assoc'
         16        SEND_VAR_EX                                              !1
         17        DO_FCALL                                      0  $12     
         18        ASSIGN                                                   !2, $12
   10    19      > JMPZ                                                     !2, ->21
   11    20    >   ECHO                                                     '%3Ch2%3EWelcome+Admin%3C%2Fh2%3E'
   14    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.17 ms | 1395 KiB | 15 Q