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 $db = new mysqli('127.0.0.1', '3274', 'hisham1234', 'week7_ilab4_3274'); if ($db->connect_errno > 0) { die('Connect Error: ' . mysqli_connect_errno()); } echo 'Greetings! Connected to the My Address Book Database!'; $sql = "SELECT id,f_name,l_name,address,city,state,zip,phone FROM 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/~3274/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/~3274/delete.php ?id={$r->id}"; $insert = "http://devry.edupe.net/~3274/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 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 47) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 102
Branch analysis from position: 102
2 jumps found. (Code = 44) Position 1 = 106, Position 2 = 26
Branch analysis from position: 106
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 106, Position 2 = 26
Branch analysis from position: 106
Branch analysis from position: 26
filename:       /in/dFHrL
function name:  (null)
number of ops:  110
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'
   10     1        NEW                                              $7      'mysqli'
          2        SEND_VAL_EX                                              '127.0.0.1'
          3        SEND_VAL_EX                                              '3274'
          4        SEND_VAL_EX                                              'hisham1234'
          5        SEND_VAL_EX                                              'week7_ilab4_3274'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $7
   12     8        FETCH_OBJ_R                                      ~10     !0, 'connect_errno'
          9        IS_SMALLER                                               0, ~10
         10      > JMPZ                                                     ~11, ->15
         11    >   INIT_FCALL_BY_NAME                                       'mysqli_connect_errno'
         12        DO_FCALL                                      0  $12     
         13        CONCAT                                           ~13     'Connect+Error%3A+', $12
         14      > EXIT                                                     ~13
   14    15    >   ECHO                                                     'Greetings%21+Connected+to+the+My+Address+Book+Database%21'
   16    16        ASSIGN                                                   !1, 'SELECT+id%2Cf_name%2Cl_name%2Caddress%2Ccity%2Cstate%2Czip%2Cphone+FROM+myaddressbook'
   19    17        INIT_METHOD_CALL                                         !0, 'query'
         18        SEND_VAR_EX                                              !1
         19        DO_FCALL                                      0  $15     
         20        ASSIGN                                           ~16     !2, $15
         21      > JMPNZ_EX                                         ~16     ~16, ->24
         22    > > EXIT                                                     'Error+perform+query%21'
         23*       BOOL                                             ~16     <true>
   21    24    >   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    25      > JMP                                                      ->102
   38    26    >   ROPE_INIT                                    16  ~26     'http%3A%2F%2Fdevry.edupe.net%2F%7E3274%2Fupdate_data.php%0A%3Fid%3D'
   39    27        FETCH_OBJ_R                                      ~17     !4, 'id'
         28        ROPE_ADD                                      1  ~26     ~26, ~17
         29        ROPE_ADD                                      2  ~26     ~26, '%26f_name%3D'
         30        FETCH_OBJ_R                                      ~18     !4, 'f_name'
         31        ROPE_ADD                                      3  ~26     ~26, ~18
         32        ROPE_ADD                                      4  ~26     ~26, '%26l_name%3D'
         33        FETCH_OBJ_R                                      ~19     !4, 'l_name'
         34        ROPE_ADD                                      5  ~26     ~26, ~19
         35        ROPE_ADD                                      6  ~26     ~26, '%26address%3D'
         36        FETCH_OBJ_R                                      ~20     !4, 'address'
         37        ROPE_ADD                                      7  ~26     ~26, ~20
         38        ROPE_ADD                                      8  ~26     ~26, '%26state%3D'
         39        FETCH_OBJ_R                                      ~21     !4, 'state'
         40        ROPE_ADD                                      9  ~26     ~26, ~21
         41        ROPE_ADD                                     10  ~26     ~26, '%26city%3D'
         42        FETCH_OBJ_R                                      ~22     !4, 'city'
         43        ROPE_ADD                                     11  ~26     ~26, ~22
         44        ROPE_ADD                                     12  ~26     ~26, '%26zip%3D'
         45        FETCH_OBJ_R                                      ~23     !4, 'zip'
         46        ROPE_ADD                                     13  ~26     ~26, ~23
         47        ROPE_ADD                                     14  ~26     ~26, '%26phone%3D'
         48        FETCH_OBJ_R                                      ~24     !4, 'phone'
         49        ROPE_END                                     15  ~25     ~26, ~24
   38    50        ASSIGN                                                   !3, ~25
   42    51        NOP                                                      
   43    52        FETCH_OBJ_R                                      ~35     !4, 'id'
         53        FAST_CONCAT                                      ~36     'http%3A%2F%2Fdevry.edupe.net%2F%7E3274%2Fdelete.php%0A%3Fid%3D', ~35
   42    54        ASSIGN                                                   !5, ~36
   46    55        ASSIGN                                                   !6, 'http%3A%2F%2Fdevry.edupe.net%2F%7E3274%2Finsert_data.php'
   49    56        ECHO                                                     '%3Ctr%3E'
   50    57        FETCH_OBJ_R                                      ~39     !4, 'id'
         58        CONCAT                                           ~40     '%3Ctd%3E', ~39
         59        CONCAT                                           ~41     ~40, '%3C%2Ftd%3E'
         60        ECHO                                                     ~41
   51    61        FETCH_OBJ_R                                      ~42     !4, 'f_name'
         62        CONCAT                                           ~43     '%3Ctd%3E', ~42
         63        CONCAT                                           ~44     ~43, '%3C%2Ftd%3E'
         64        ECHO                                                     ~44
   52    65        FETCH_OBJ_R                                      ~45     !4, 'l_name'
         66        CONCAT                                           ~46     '%3Ctd%3E', ~45
         67        CONCAT                                           ~47     ~46, '%3C%2Ftd%3E'
         68        ECHO                                                     ~47
   53    69        FETCH_OBJ_R                                      ~48     !4, 'address'
         70        CONCAT                                           ~49     '%3Ctd%3E', ~48
         71        CONCAT                                           ~50     ~49, '%3C%2Ftd%3E'
         72        ECHO                                                     ~50
   54    73        FETCH_OBJ_R                                      ~51     !4, 'city'
         74        CONCAT                                           ~52     '%3Ctd%3E', ~51
         75        CONCAT                                           ~53     ~52, '%3C%2Ftd%3E'
         76        ECHO                                                     ~53
   55    77        FETCH_OBJ_R                                      ~54     !4, 'state'
         78        CONCAT                                           ~55     '%3Ctd%3E', ~54
         79        CONCAT                                           ~56     ~55, '%3C%2Ftd%3E'
         80        ECHO                                                     ~56
   56    81        FETCH_OBJ_R                                      ~57     !4, 'zip'
         82        CONCAT                                           ~58     '%3Ctd%3E', ~57
         83        CONCAT                                           ~59     ~58, '%3C%2Ftd%3E'
         84        ECHO                                                     ~59
   57    85        FETCH_OBJ_R                                      ~60     !4, 'phone'
         86        CONCAT                                           ~61     '%3Ctd%3E', ~60
         87        CONCAT                                           ~62     ~61, '%3C%2Ftd%3E'
         88        ECHO                                                     ~62
   59    89        ROPE_INIT                                     3  ~64     '%3Ctd%3E%3Ca+href%3D%27'
         90        ROPE_ADD                                      1  ~64     ~64, !3
         91        ROPE_END                                      2  ~63     ~64, '%27%3EUpdate%3C%2Fa%3E%3C%2Ftd%3E'
         92        ECHO                                                     ~63
   60    93        ROPE_INIT                                     3  ~67     '%3Ctd%3E%3Ca+href%3D%27'
         94        ROPE_ADD                                      1  ~67     ~67, !5
         95        ROPE_END                                      2  ~66     ~67, '%27%3EDelete%3C%2Fa%3E%3C%2Ftd%3E'
         96        ECHO                                                     ~66
   61    97        ROPE_INIT                                     3  ~70     '%3Ctd%3E%3Ca+href%3D%27'
         98        ROPE_ADD                                      1  ~70     ~70, !6
         99        ROPE_END                                      2  ~69     ~70, '%27%3EInsert%3C%2Fa%3E%3C%2Ftd%3E'
        100        ECHO                                                     ~69
   62   101        ECHO                                                     '%3C%2Ftr%3E'
   36   102    >   INIT_METHOD_CALL                                         !2, 'fetch_object'
        103        DO_FCALL                                      0  $72     
        104        ASSIGN                                           ~73     !4, $72
        105      > JMPNZ                                                    ~73, ->26
   65   106    >   INIT_METHOD_CALL                                         !0, 'close'
        107        DO_FCALL                                      0          
   67   108        ECHO                                                     '++++%0A%0A++++++++%3C%2Ftable%3E%0A++++%0A++%0A++++%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   73   109      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.63 ms | 1403 KiB | 13 Q