3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('display_errors', 'On'); error_reporting(E_ALL); $time = microtime(); $time = explode(' ', $time); $time = $time[1] + $time[0]; $start = $time; session_start(); define("DB_HOST","mysql117.loopia.se"); define("DB_USER","normal@i103189"); define("DB_PASS","KungMicke87"); define("DB_NAME","indiehjaerta_com"); ?> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <title>indiehjaerta.com - Members</title> <link href="style_test.css" rel="stylesheet" type="text/css" /> </head> <body> <a href="login.php">Login<a/> - <a href="admin.php">Admin<a/> - <a href="members.php">Members<a/> - <a href="register.php">Register<a/> - <a href="blog.php">Blog<a/> - <a href="news.php">News<a/> - <a href="event.php">Event<a/> - <a href="forum.php">Forum<a/> - <a href="profile.php">Profile<a/> - <a href="logout.php">Logout<a/> <br /> <br /> <!-- Member Edit Start --> <?php //if ($_GET['action'] == 'edit') if (FALSE) { ?> Edit User! <?php } else { ?> <!-- Member Edit End --> <!-- Member List Start --> <?php // Connect to MySQLi $sqli = mysqli_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME) or die("Error: ".mysqli_error($sqli)); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $query = mysqli_query($sqli, "SELECT * FROM members ORDER BY id") or die("Error: ".mysqli_error($sqli)); echo "<table border='0'> <tr> <th>ID</th> <th>UserName</th> <th>EDIT</th> </tr>"; while ($row = mysqli_fetch_array($query)) { echo "<tr>"; echo "<td>" . $row['id'] . "</td>"; echo "<td>" . $row['username'] . "</td>"; //echo '<td><a href="members.php?action=edit"</td>'; echo "</tr>"; } echo "</table>"; } ?> <!-- Member List End --> <?php $time = microtime(); $time = explode(' ', $time); $time = $time[1] + $time[0]; $finish = $time; $total_time = round(($finish - $start), 4); echo '<span class="text">Page generated in '.$total_time.' seconds.</span><br />'; ?> </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 40, Position 2 = 42
Branch analysis from position: 40
1 jumps found. (Code = 42) Position 1 = 98
Branch analysis from position: 98
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 42
2 jumps found. (Code = 47) Position 1 = 55, Position 2 = 61
Branch analysis from position: 55
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 61
2 jumps found. (Code = 43) Position 1 = 64, Position 2 = 68
Branch analysis from position: 64
2 jumps found. (Code = 47) Position 1 = 74, Position 2 = 80
Branch analysis from position: 74
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 80
1 jumps found. (Code = 42) Position 1 = 92
Branch analysis from position: 92
2 jumps found. (Code = 44) Position 1 = 97, Position 2 = 82
Branch analysis from position: 97
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 82
2 jumps found. (Code = 44) Position 1 = 97, Position 2 = 82
Branch analysis from position: 97
Branch analysis from position: 82
Branch analysis from position: 68
filename:       /in/IF46e
function name:  (null)
number of ops:  123
compiled vars:  !0 = $time, !1 = $start, !2 = $sqli, !3 = $query, !4 = $row, !5 = $finish, !6 = $total_time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'display_errors'
          2        SEND_VAL                                                 'On'
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'error_reporting'
          5        SEND_VAL                                                 32767
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'microtime'
          8        DO_ICALL                                         $9      
          9        ASSIGN                                                   !0, $9
    6    10        INIT_FCALL                                               'explode'
         11        SEND_VAL                                                 '+'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $11     
         14        ASSIGN                                                   !0, $11
    7    15        FETCH_DIM_R                                      ~13     !0, 1
         16        FETCH_DIM_R                                      ~14     !0, 0
         17        ADD                                              ~15     ~13, ~14
         18        ASSIGN                                                   !0, ~15
    8    19        ASSIGN                                                   !1, !0
   10    20        INIT_FCALL                                               'session_start'
         21        DO_ICALL                                                 
   12    22        INIT_FCALL                                               'define'
         23        SEND_VAL                                                 'DB_HOST'
         24        SEND_VAL                                                 'mysql117.loopia.se'
         25        DO_ICALL                                                 
   13    26        INIT_FCALL                                               'define'
         27        SEND_VAL                                                 'DB_USER'
         28        SEND_VAL                                                 'normal%40i103189'
         29        DO_ICALL                                                 
   14    30        INIT_FCALL                                               'define'
         31        SEND_VAL                                                 'DB_PASS'
         32        SEND_VAL                                                 'KungMicke87'
         33        DO_ICALL                                                 
   15    34        INIT_FCALL                                               'define'
         35        SEND_VAL                                                 'DB_NAME'
         36        SEND_VAL                                                 'indiehjaerta_com'
         37        DO_ICALL                                                 
   18    38        ECHO                                                     '%0A%3Chtml%3E%0A%3Chead%3E%0A%0A%3Cmeta+http-equiv%3D%22Content-Type%22+content%3D%22text%2Fhtml%3Bcharset%3DUTF-8%22+%2F%3E%0A%0A%3Ctitle%3Eindiehjaerta.com+-+Members%3C%2Ftitle%3E%0A%0A%3Clink+href%3D%22style_test.css%22+rel%3D%22stylesheet%22+type%3D%22text%2Fcss%22+%2F%3E%0A%0A%3C%2Fhead%3E%0A%3Cbody%3E%0A%0A%3Ca+href%3D%22login.php%22%3ELogin%3Ca%2F%3E+-+%0A%3Ca+href%3D%22admin.php%22%3EAdmin%3Ca%2F%3E+-+%0A%3Ca+href%3D%22members.php%22%3EMembers%3Ca%2F%3E+-+%0A%3Ca+href%3D%22register.php%22%3ERegister%3Ca%2F%3E+-+%0A%3Ca+href%3D%22blog.php%22%3EBlog%3Ca%2F%3E+-+%0A%3Ca+href%3D%22news.php%22%3ENews%3Ca%2F%3E+-+%0A%3Ca+href%3D%22event.php%22%3EEvent%3Ca%2F%3E+-+%0A%3Ca+href%3D%22forum.php%22%3EForum%3Ca%2F%3E+-+%0A%3Ca+href%3D%22profile.php%22%3EProfile%3Ca%2F%3E+-+%0A%3Ca+href%3D%22logout.php%22%3ELogout%3Ca%2F%3E%0A%3Cbr+%2F%3E+%3Cbr+%2F%3E%0A%0A%3C%21--+Member+Edit+Start+--%3E%0A%0A'
   47    39      > JMPZ                                                     <false>, ->42
   50    40    >   ECHO                                                     '%0AEdit+User%21%0A%0A'
         41      > JMP                                                      ->98
   58    42    >   ECHO                                                     '%0A%3C%21--+Member+Edit+End+--%3E%0A%3C%21--+Member+List+Start+--%3E%0A%0A'
   65    43        INIT_FCALL_BY_NAME                                       'mysqli_connect'
         44        FETCH_CONSTANT                                   ~23     'DB_HOST'
         45        SEND_VAL_EX                                              ~23
         46        FETCH_CONSTANT                                   ~24     'DB_USER'
         47        SEND_VAL_EX                                              ~24
         48        FETCH_CONSTANT                                   ~25     'DB_PASS'
         49        SEND_VAL_EX                                              ~25
         50        FETCH_CONSTANT                                   ~26     'DB_NAME'
         51        SEND_VAL_EX                                              ~26
         52        DO_FCALL                                      0  $27     
         53        ASSIGN                                           ~28     !2, $27
         54      > JMPNZ_EX                                         ~28     ~28, ->61
         55    >   INIT_FCALL_BY_NAME                                       'mysqli_error'
         56        SEND_VAR_EX                                              !2
         57        DO_FCALL                                      0  $29     
         58        CONCAT                                           ~30     'Error%3A+', $29
         59      > EXIT                                                     ~30
         60*       BOOL                                             ~28     <true>
   68    61    >   INIT_FCALL_BY_NAME                                       'mysqli_connect_errno'
         62        DO_FCALL                                      0  $31     
         63      > JMPZ                                                     $31, ->68
   70    64    >   INIT_FCALL_BY_NAME                                       'mysqli_connect_error'
         65        DO_FCALL                                      0  $32     
         66        CONCAT                                           ~33     'Failed+to+connect+to+MySQL%3A+', $32
         67        ECHO                                                     ~33
   73    68    >   INIT_FCALL_BY_NAME                                       'mysqli_query'
         69        SEND_VAR_EX                                              !2
         70        SEND_VAL_EX                                              'SELECT+%2A+FROM+members+ORDER+BY+id'
         71        DO_FCALL                                      0  $34     
         72        ASSIGN                                           ~35     !3, $34
         73      > JMPNZ_EX                                         ~35     ~35, ->80
         74    >   INIT_FCALL_BY_NAME                                       'mysqli_error'
         75        SEND_VAR_EX                                              !2
         76        DO_FCALL                                      0  $36     
         77        CONCAT                                           ~37     'Error%3A+', $36
         78      > EXIT                                                     ~37
         79*       BOOL                                             ~35     <true>
   75    80    >   ECHO                                                     '%3Ctable+border%3D%270%27%3E%0A%09%3Ctr%3E%09%0A%09%3Cth%3EID%3C%2Fth%3E%0A%09%3Cth%3EUserName%3C%2Fth%3E%0A%09%3Cth%3EEDIT%3C%2Fth%3E%0A%09%3C%2Ftr%3E'
   82    81      > JMP                                                      ->92
   84    82    >   ECHO                                                     '%3Ctr%3E'
   85    83        FETCH_DIM_R                                      ~38     !4, 'id'
         84        CONCAT                                           ~39     '%3Ctd%3E', ~38
         85        CONCAT                                           ~40     ~39, '%3C%2Ftd%3E'
         86        ECHO                                                     ~40
   86    87        FETCH_DIM_R                                      ~41     !4, 'username'
         88        CONCAT                                           ~42     '%3Ctd%3E', ~41
         89        CONCAT                                           ~43     ~42, '%3C%2Ftd%3E'
         90        ECHO                                                     ~43
   88    91        ECHO                                                     '%3C%2Ftr%3E'
   82    92    >   INIT_FCALL_BY_NAME                                       'mysqli_fetch_array'
         93        SEND_VAR_EX                                              !3
         94        DO_FCALL                                      0  $44     
         95        ASSIGN                                           ~45     !4, $44
         96      > JMPNZ                                                    ~45, ->82
   91    97    >   ECHO                                                     '%3C%2Ftable%3E'
   95    98    >   ECHO                                                     '%0A%0A%3C%21--+Member+List+End+--%3E%0A%0A'
  100    99        INIT_FCALL                                               'microtime'
        100        DO_ICALL                                         $46     
        101        ASSIGN                                                   !0, $46
  101   102        INIT_FCALL                                               'explode'
        103        SEND_VAL                                                 '+'
        104        SEND_VAR                                                 !0
        105        DO_ICALL                                         $48     
        106        ASSIGN                                                   !0, $48
  102   107        FETCH_DIM_R                                      ~50     !0, 1
        108        FETCH_DIM_R                                      ~51     !0, 0
        109        ADD                                              ~52     ~50, ~51
        110        ASSIGN                                                   !0, ~52
  103   111        ASSIGN                                                   !5, !0
  104   112        INIT_FCALL                                               'round'
        113        SUB                                              ~55     !5, !1
        114        SEND_VAL                                                 ~55
        115        SEND_VAL                                                 4
        116        DO_ICALL                                         $56     
        117        ASSIGN                                                   !6, $56
  105   118        CONCAT                                           ~58     '%3Cspan+class%3D%22text%22%3EPage+generated+in+', !6
        119        CONCAT                                           ~59     ~58, '+seconds.%3C%2Fspan%3E%3Cbr+%2F%3E'
        120        ECHO                                                     ~59
  107   121        ECHO                                                     '%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
  109   122      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.98 ms | 1408 KiB | 27 Q