3v4l.org

run code in 300+ PHP versions simultaneously
<?php include_once('config.php'); $name=$_POST['name']; $grade=$_POST['grade']; $dept=$_POST['dept']; $sql="INSERT INTO member(Name, Grade, Dept) VALUES('".$name."','".$grade."','".$dept."')"; mysql_query($sql) or die(mysql_error()); include 'config.php'; mysql_select_db("dept_db",$conf); //$select=mysql_query("Select * from skype_tb where ID=1"); //$select=mysql_query("Select * from reg_fb where ID between 4 and 6"); //$select=mysql_query("Select * from reg_fb where ID != 5"); //$select=mysql_query("Select * from reg_fb where ID <5"); //$select=mysql_query("Select * from reg_fb where First_Name like '%n'"); $select=mysql_query("Select * from member"); echo "<table border=2>"; echo "<tr>"; echo "<th> ID </th>"; echo "<th> Name </th>"; echo "<th> Grade </th>"; echo "<th> Department </th>"; echo "</tr>"; while($row = mysql_fetch_array($select)) { echo "<tr>"; echo "<td>" .$row['ID']. " </td>"; echo "<td>" .$row['Name']. "</td>"; echo "<td>" .$row['Grade']. "</td>"; echo "<td>" .$row['Dept']. "</td>"; echo "</tr>"; } echo "</table>"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 21, Position 2 = 25
Branch analysis from position: 21
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 60
Branch analysis from position: 60
2 jumps found. (Code = 44) Position 1 = 65, Position 2 = 42
Branch analysis from position: 65
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 42
2 jumps found. (Code = 44) Position 1 = 65, Position 2 = 42
Branch analysis from position: 65
Branch analysis from position: 42
filename:       /in/dlli9
function name:  (null)
number of ops:  67
compiled vars:  !0 = $name, !1 = $grade, !2 = $dept, !3 = $sql, !4 = $conf, !5 = $select, !6 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INCLUDE_OR_EVAL                                          'config.php', INCLUDE_ONCE
    5     1        FETCH_R                      global              ~8      '_POST'
          2        FETCH_DIM_R                                      ~9      ~8, 'name'
          3        ASSIGN                                                   !0, ~9
    6     4        FETCH_R                      global              ~11     '_POST'
          5        FETCH_DIM_R                                      ~12     ~11, 'grade'
          6        ASSIGN                                                   !1, ~12
    7     7        FETCH_R                      global              ~14     '_POST'
          8        FETCH_DIM_R                                      ~15     ~14, 'dept'
          9        ASSIGN                                                   !2, ~15
   12    10        CONCAT                                           ~17     'INSERT+INTO+member%28Name%2C+Grade%2C+Dept%29+%0AVALUES%28%27', !0
         11        CONCAT                                           ~18     ~17, '%27%2C%27'
         12        CONCAT                                           ~19     ~18, !1
         13        CONCAT                                           ~20     ~19, '%27%2C%27'
         14        CONCAT                                           ~21     ~20, !2
         15        CONCAT                                           ~22     ~21, '%27%29'
   11    16        ASSIGN                                                   !3, ~22
   13    17        INIT_FCALL_BY_NAME                                       'mysql_query'
         18        SEND_VAR_EX                                              !3
         19        DO_FCALL                                      0  $24     
         20      > JMPNZ_EX                                         ~25     $24, ->25
         21    >   INIT_FCALL_BY_NAME                                       'mysql_error'
         22        DO_FCALL                                      0  $26     
         23      > EXIT                                                     $26
         24*       BOOL                                             ~25     <true>
   17    25    >   INCLUDE_OR_EVAL                                          'config.php', INCLUDE
   18    26        INIT_FCALL_BY_NAME                                       'mysql_select_db'
         27        SEND_VAL_EX                                              'dept_db'
         28        SEND_VAR_EX                                              !4
         29        DO_FCALL                                      0          
   24    30        INIT_FCALL_BY_NAME                                       'mysql_query'
         31        SEND_VAL_EX                                              'Select+%2A+from+member'
         32        DO_FCALL                                      0  $29     
         33        ASSIGN                                                   !5, $29
   27    34        ECHO                                                     '%3Ctable+border%3D2%3E'
   28    35        ECHO                                                     '%3Ctr%3E'
   29    36        ECHO                                                     '%3Cth%3E+ID+%3C%2Fth%3E'
   30    37        ECHO                                                     '%3Cth%3E+Name+%3C%2Fth%3E'
   31    38        ECHO                                                     '%3Cth%3E+Grade+%3C%2Fth%3E'
   32    39        ECHO                                                     '%3Cth%3E+Department+%3C%2Fth%3E'
   35    40        ECHO                                                     '%3C%2Ftr%3E'
   37    41      > JMP                                                      ->60
   40    42    >   ECHO                                                     '%3Ctr%3E'
   41    43        FETCH_DIM_R                                      ~31     !6, 'ID'
         44        CONCAT                                           ~32     '%3Ctd%3E', ~31
         45        CONCAT                                           ~33     ~32, '+%3C%2Ftd%3E'
         46        ECHO                                                     ~33
   42    47        FETCH_DIM_R                                      ~34     !6, 'Name'
         48        CONCAT                                           ~35     '%3Ctd%3E', ~34
         49        CONCAT                                           ~36     ~35, '%3C%2Ftd%3E'
         50        ECHO                                                     ~36
   43    51        FETCH_DIM_R                                      ~37     !6, 'Grade'
         52        CONCAT                                           ~38     '%3Ctd%3E', ~37
         53        CONCAT                                           ~39     ~38, '%3C%2Ftd%3E'
         54        ECHO                                                     ~39
   44    55        FETCH_DIM_R                                      ~40     !6, 'Dept'
         56        CONCAT                                           ~41     '%3Ctd%3E', ~40
         57        CONCAT                                           ~42     ~41, '%3C%2Ftd%3E'
         58        ECHO                                                     ~42
   45    59        ECHO                                                     '%3C%2Ftr%3E'
   37    60    >   INIT_FCALL_BY_NAME                                       'mysql_fetch_array'
         61        SEND_VAR_EX                                              !5
         62        DO_FCALL                                      0  $43     
         63        ASSIGN                                           ~44     !6, $43
         64      > JMPNZ                                                    ~44, ->42
   47    65    >   ECHO                                                     '%3C%2Ftable%3E'
   49    66      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.22 ms | 1390 KiB | 13 Q