3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = '5'; $q = "SELECT * FROM new_members WHERE member_name='Admin' AND passwd='" . utf8_decode($test) . "' LIMIT 1"; $sql = mysql_query($q); $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 = 16, Position 2 = 17
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/Wrirn
function name:  (null)
number of ops:  18
compiled vars:  !0 = $test, !1 = $q, !2 = $sql, !3 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '5'
    4     1        INIT_FCALL                                               'utf8_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        CONCAT                                           ~6      'SELECT+%2A+FROM+new_members+WHERE+member_name%3D%27Admin%27+AND+passwd%3D%27', $5
          5        CONCAT                                           ~7      ~6, '%27+LIMIT+1'
          6        ASSIGN                                                   !1, ~7
    6     7        INIT_FCALL_BY_NAME                                       'mysql_query'
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0  $9      
         10        ASSIGN                                                   !2, $9
    7    11        INIT_FCALL_BY_NAME                                       'mysql_fetch_assoc'
         12        SEND_VAR_EX                                              !2
         13        DO_FCALL                                      0  $11     
         14        ASSIGN                                                   !3, $11
    9    15      > JMPZ                                                     !3, ->17
   10    16    >   ECHO                                                     '%3Ch2%3EWelcome+Admin%3C%2Fh2%3E'
   13    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.44 ms | 1395 KiB | 15 Q