@ 2014-05-25T18:45:43Z <?php
ini_set('display_errors', 'On');
error_reporting(E_ALL);
$time = microtime();
$time = explode(' ', $time);
$time = $time[1] + $time[0];
$start = $time;
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 - News</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 />
<!-- New Post 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 news ORDER BY id") or die("Error: ".mysqli_error($sqli));
echo '<table border="0">';
while ($row = mysqli_fetch_array($query))
{
echo '<tr>';
echo '<td><span class="text">Subject:</span></td>';
echo '<td><span class="text"> .$row['headline']. </span></td>';
echo '</tr>';
echo '<tr>';
echo '<td colspan="2"><span class="text">Story:</span></td>';
echo '</tr>';
echo '<tr>';
echo '<td colspan="2"><span class="text">' .$row['story']. '</span></td>';
echo '</tr>';
echo '<tr>';
echo '<td><span class="text">Written by:</span></td>';
echo '<td><span class="text"> .$row['userid']. </span></td>';
echo '</tr>';
echo '<tr>';
echo '<td><span class="text">Time:</span></td>';
echo '<td><span class="text"> .$row['timestamp']. </span></td>';
echo '</tr>';
}
echo "</table><br />";
?>
<!-- New Post 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>
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Version System time (s) User time (s) Memory (MiB) 5.4.28 0.005 0.040 12.38 5.4.27 0.007 0.040 12.38 5.4.26 0.011 0.048 12.38 5.4.25 0.007 0.055 12.38 5.4.24 0.009 0.081 12.38 5.4.23 0.007 0.052 12.37 5.4.22 0.007 0.055 12.37 5.4.21 0.010 0.051 12.37 5.4.20 0.012 0.060 12.37 5.4.19 0.010 0.057 12.36 5.4.18 0.011 0.038 12.37 5.4.17 0.007 0.041 12.37 5.4.16 0.010 0.039 12.37 5.4.15 0.010 0.042 12.37 5.4.14 0.008 0.038 12.05 5.4.13 0.013 0.043 12.04 5.4.12 0.012 0.036 12.01 5.4.11 0.024 0.043 12.00 5.4.10 0.007 0.045 12.00 5.4.9 0.008 0.045 12.00 5.4.8 0.009 0.061 12.00 5.4.7 0.012 0.071 11.99 5.4.6 0.010 0.059 11.99 5.4.5 0.009 0.047 12.00 5.4.4 0.015 0.046 11.98 5.4.3 0.014 0.056 11.98 5.4.2 0.018 0.048 11.98 5.4.1 0.016 0.063 11.98 5.4.0 0.004 0.051 11.47 5.3.28 0.016 0.088 12.71 5.3.27 0.010 0.041 12.73 5.3.26 0.014 0.036 12.72 5.3.25 0.010 0.059 12.72 5.3.24 0.008 0.060 12.72 5.3.23 0.012 0.055 12.71 5.3.22 0.010 0.062 12.68 5.3.21 0.022 0.076 12.68 5.3.20 0.009 0.054 12.68 5.3.19 0.010 0.058 12.68 5.3.18 0.008 0.075 12.67 5.3.17 0.005 0.046 12.67 5.3.16 0.008 0.041 12.67 5.3.15 0.012 0.060 12.68 5.3.14 0.007 0.040 12.66 5.3.13 0.015 0.052 12.66 5.3.12 0.009 0.048 12.66 5.3.11 0.005 0.046 12.66 5.3.10 0.009 0.041 12.12 5.3.9 0.013 0.044 12.08 5.3.8 0.012 0.052 12.07 5.3.7 0.017 0.052 12.07 5.3.6 0.017 0.059 12.07 5.3.5 0.015 0.050 12.00 5.3.4 0.024 0.105 12.00 5.3.3 0.014 0.054 11.94 5.3.2 0.017 0.080 11.71 5.3.1 0.023 0.062 11.68 5.3.0 0.010 0.055 11.67
preferences:dark mode live preview
145.05 ms | 1394 KiB | 7 Q