3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Index</title> </head> <body> <?php if ($db->connect_errno > 0) { die('Connect Error: ' . mysqli_connect_errno()); } echo 'Greetings! Connected to the MyAddressBook Database!'; $sql = "SELECT id, f_name,l_name,address,city,state,zip,phone FROM LAB7_3823.myaddressbook"; $result_db = $db->query($sql) or die('Error perform query!'); ?> <table border="1"> <tr> <th>ID</th> <th>First Name</th> <th>Last Name</th> <th>Address</th> <th>City</th> <th>State</th> <th>Zip</th> <th>Phone</th> </tr> <?php while ($r = $result_db->fetch_object()) { $update = "http://devry.edupe.net/3823/update_data.php ?id={$r->id}&f_name={$r->f_name}&l_name={$r->l_name}&address={$r->address}&state={$r->state}&city={$r->city}&zip={$r->zip}&phone=$r->phone"; $delete = "http://devry.edupe.net/3823/delete.php ?id={$r->id}"; $insert = "http://devry.edupe.net/3823/insert_data.php"; echo '<tr>'; echo '<td>' . $r->id . '</td>'; echo '<td>' . $r->f_name . '</td>'; echo '<td>' . $r->l_name . '</td>'; echo '<td>' . $r->address . '</td>'; echo '<td>' . $r->city . '</td>'; echo '<td>' . $r->state . '</td>'; echo '<td>' . $r->zip . '</td>'; echo '<td>' . $r->phone . '</td>'; echo "<td><a href='{$update}'>Update</a></td>"; echo "<td><a href='{$delete}'>Delete</a></td>"; echo "<td><a href='{$insert}'>Insert</a></td>"; echo '</tr>'; } $db->close(); ?> </table> </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 47) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 95
Branch analysis from position: 95
2 jumps found. (Code = 44) Position 1 = 99, Position 2 = 19
Branch analysis from position: 99
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 99, Position 2 = 19
Branch analysis from position: 99
Branch analysis from position: 19
filename:       /in/O8HXc
function name:  (null)
number of ops:  103
compiled vars:  !0 = $db, !1 = $sql, !2 = $result_db, !3 = $update, !4 = $r, !5 = $delete, !6 = $insert
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3C%21DOCTYPE+html%3E%0A%3Chtml%3E%0A++++%3Chead%3E%0A++++++++%3Cmeta+http-equiv%3D%22Content-Type%22+content%3D%22text%2Fhtml%3B+charset%3DUTF-8%22%3E%0A++++++++%3Ctitle%3EIndex%3C%2Ftitle%3E%0A++++%3C%2Fhead%3E%0A++++%3Cbody%3E%0A++++++++++++%0A'
   12     1        FETCH_OBJ_R                                      ~7      !0, 'connect_errno'
          2        IS_SMALLER                                               0, ~7
          3      > JMPZ                                                     ~8, ->8
          4    >   INIT_FCALL_BY_NAME                                       'mysqli_connect_errno'
          5        DO_FCALL                                      0  $9      
          6        CONCAT                                           ~10     'Connect+Error%3A+', $9
          7      > EXIT                                                     ~10
   14     8    >   ECHO                                                     'Greetings%21+Connected+to+the+MyAddressBook+Database%21'
   16     9        ASSIGN                                                   !1, 'SELECT+id%2C+f_name%2Cl_name%2Caddress%2Ccity%2Cstate%2Czip%2Cphone+FROM+LAB7_3823.myaddressbook'
   19    10        INIT_METHOD_CALL                                         !0, 'query'
         11        SEND_VAR_EX                                              !1
         12        DO_FCALL                                      0  $12     
         13        ASSIGN                                           ~13     !2, $12
         14      > JMPNZ_EX                                         ~13     ~13, ->17
         15    > > EXIT                                                     'Error+perform+query%21'
         16*       BOOL                                             ~13     <true>
   21    17    >   ECHO                                                     '+++%0A+++++%3Ctable+border%3D%221%22%3E%0A++++++++++++%3Ctr%3E%0A++++++++++++++++%3Cth%3EID%3C%2Fth%3E%0A++++++++++++++++%3Cth%3EFirst+Name%3C%2Fth%3E%0A++++++++++++++++%3Cth%3ELast+Name%3C%2Fth%3E%0A++++++++++++++++%3Cth%3EAddress%3C%2Fth%3E%0A++++++++++++++++%3Cth%3ECity%3C%2Fth%3E%0A++++++++++++++++%3Cth%3EState%3C%2Fth%3E%0A++++++++++++++++%3Cth%3EZip%3C%2Fth%3E%0A++++++++++++++++%3Cth%3EPhone%3C%2Fth%3E%0A++++++++++++%3C%2Ftr%3E%0A++++++++++%0A%0A++'
   36    18      > JMP                                                      ->95
   38    19    >   ROPE_INIT                                    16  ~23     'http%3A%2F%2Fdevry.edupe.net%2F3823%2Fupdate_data.php%0A%3Fid%3D'
   39    20        FETCH_OBJ_R                                      ~14     !4, 'id'
         21        ROPE_ADD                                      1  ~23     ~23, ~14
         22        ROPE_ADD                                      2  ~23     ~23, '%26f_name%3D'
         23        FETCH_OBJ_R                                      ~15     !4, 'f_name'
         24        ROPE_ADD                                      3  ~23     ~23, ~15
         25        ROPE_ADD                                      4  ~23     ~23, '%26l_name%3D'
         26        FETCH_OBJ_R                                      ~16     !4, 'l_name'
         27        ROPE_ADD                                      5  ~23     ~23, ~16
         28        ROPE_ADD                                      6  ~23     ~23, '%26address%3D'
         29        FETCH_OBJ_R                                      ~17     !4, 'address'
         30        ROPE_ADD                                      7  ~23     ~23, ~17
         31        ROPE_ADD                                      8  ~23     ~23, '%26state%3D'
         32        FETCH_OBJ_R                                      ~18     !4, 'state'
         33        ROPE_ADD                                      9  ~23     ~23, ~18
         34        ROPE_ADD                                     10  ~23     ~23, '%26city%3D'
         35        FETCH_OBJ_R                                      ~19     !4, 'city'
         36        ROPE_ADD                                     11  ~23     ~23, ~19
         37        ROPE_ADD                                     12  ~23     ~23, '%26zip%3D'
         38        FETCH_OBJ_R                                      ~20     !4, 'zip'
         39        ROPE_ADD                                     13  ~23     ~23, ~20
         40        ROPE_ADD                                     14  ~23     ~23, '%26phone%3D'
         41        FETCH_OBJ_R                                      ~21     !4, 'phone'
         42        ROPE_END                                     15  ~22     ~23, ~21
   38    43        ASSIGN                                                   !3, ~22
   42    44        NOP                                                      
   43    45        FETCH_OBJ_R                                      ~32     !4, 'id'
         46        FAST_CONCAT                                      ~33     'http%3A%2F%2Fdevry.edupe.net%2F3823%2Fdelete.php%0A%3Fid%3D', ~32
   42    47        ASSIGN                                                   !5, ~33
   46    48        ASSIGN                                                   !6, 'http%3A%2F%2Fdevry.edupe.net%2F3823%2Finsert_data.php'
   49    49        ECHO                                                     '%3Ctr%3E'
   50    50        FETCH_OBJ_R                                      ~36     !4, 'id'
         51        CONCAT                                           ~37     '%3Ctd%3E', ~36
         52        CONCAT                                           ~38     ~37, '%3C%2Ftd%3E'
         53        ECHO                                                     ~38
   51    54        FETCH_OBJ_R                                      ~39     !4, 'f_name'
         55        CONCAT                                           ~40     '%3Ctd%3E', ~39
         56        CONCAT                                           ~41     ~40, '%3C%2Ftd%3E'
         57        ECHO                                                     ~41
   52    58        FETCH_OBJ_R                                      ~42     !4, 'l_name'
         59        CONCAT                                           ~43     '%3Ctd%3E', ~42
         60        CONCAT                                           ~44     ~43, '%3C%2Ftd%3E'
         61        ECHO                                                     ~44
   53    62        FETCH_OBJ_R                                      ~45     !4, 'address'
         63        CONCAT                                           ~46     '%3Ctd%3E', ~45
         64        CONCAT                                           ~47     ~46, '%3C%2Ftd%3E'
         65        ECHO                                                     ~47
   54    66        FETCH_OBJ_R                                      ~48     !4, 'city'
         67        CONCAT                                           ~49     '%3Ctd%3E', ~48
         68        CONCAT                                           ~50     ~49, '%3C%2Ftd%3E'
         69        ECHO                                                     ~50
   55    70        FETCH_OBJ_R                                      ~51     !4, 'state'
         71        CONCAT                                           ~52     '%3Ctd%3E', ~51
         72        CONCAT                                           ~53     ~52, '%3C%2Ftd%3E'
         73        ECHO                                                     ~53
   56    74        FETCH_OBJ_R                                      ~54     !4, 'zip'
         75        CONCAT                                           ~55     '%3Ctd%3E', ~54
         76        CONCAT                                           ~56     ~55, '%3C%2Ftd%3E'
         77        ECHO                                                     ~56
   57    78        FETCH_OBJ_R                                      ~57     !4, 'phone'
         79        CONCAT                                           ~58     '%3Ctd%3E', ~57
         80        CONCAT                                           ~59     ~58, '%3C%2Ftd%3E'
         81        ECHO                                                     ~59
   59    82        ROPE_INIT                                     3  ~61     '%3Ctd%3E%3Ca+href%3D%27'
         83        ROPE_ADD                                      1  ~61     ~61, !3
         84        ROPE_END                                      2  ~60     ~61, '%27%3EUpdate%3C%2Fa%3E%3C%2Ftd%3E'
         85        ECHO                                                     ~60
   60    86        ROPE_INIT                                     3  ~64     '%3Ctd%3E%3Ca+href%3D%27'
         87        ROPE_ADD                                      1  ~64     ~64, !5
         88        ROPE_END                                      2  ~63     ~64, '%27%3EDelete%3C%2Fa%3E%3C%2Ftd%3E'
         89        ECHO                                                     ~63
   61    90        ROPE_INIT                                     3  ~67     '%3Ctd%3E%3Ca+href%3D%27'
         91        ROPE_ADD                                      1  ~67     ~67, !6
         92        ROPE_END                                      2  ~66     ~67, '%27%3EInsert%3C%2Fa%3E%3C%2Ftd%3E'
         93        ECHO                                                     ~66
   62    94        ECHO                                                     '%3C%2Ftr%3E'
   36    95    >   INIT_METHOD_CALL                                         !2, 'fetch_object'
         96        DO_FCALL                                      0  $69     
         97        ASSIGN                                           ~70     !4, $69
         98      > JMPNZ                                                    ~70, ->19
   65    99    >   INIT_METHOD_CALL                                         !0, 'close'
        100        DO_FCALL                                      0          
   67   101        ECHO                                                     '++++%0A%0A++++++++%3C%2Ftable%3E%0A++++%0A++%0A++++%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   73   102      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.41 ms | 1403 KiB | 13 Q