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 ($isset('action']) { if ($_GET['action'] == 'edit') { ?> Edit User!<br /> Back <?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">EDIT</a></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>

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).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.280.0290.07512.37
5.4.270.0230.07412.37
5.4.260.0250.06812.37
5.4.250.0210.06912.37
5.4.240.0270.08312.37
5.4.230.0130.07212.36
5.4.220.0160.06312.36
5.4.210.0110.05812.36
5.4.200.0390.06712.36
5.4.190.0100.06012.36
5.4.180.0170.06112.36
5.4.170.0190.06712.36
5.4.160.0150.06012.36
5.4.150.0230.07812.35
5.4.140.0190.09012.05
5.4.130.0270.08912.03
5.4.120.0270.09711.99
5.4.110.0140.08911.99
5.4.100.0100.07111.99
5.4.90.0180.07311.99
5.4.80.0110.05611.99
5.4.70.0160.06311.98
5.4.60.0190.05811.98
5.4.50.0150.07911.98
5.4.40.0190.06411.97
5.4.30.0140.05011.97
5.4.20.0130.06411.96
5.4.10.0160.06311.97
5.4.00.0190.06711.46
5.3.280.0100.06412.71
5.3.270.0210.07312.72
5.3.260.0140.06912.72
5.3.250.0150.08112.72
5.3.240.0160.08212.72
5.3.230.0130.05312.71
5.3.220.0210.06412.68
5.3.210.0260.06812.68
5.3.200.0180.06812.68
5.3.190.0200.07812.68
5.3.180.0170.06812.67
5.3.170.0210.08812.67
5.3.160.0270.08812.67
5.3.150.0250.08012.67
5.3.140.0260.07112.66
5.3.130.0200.08612.66
5.3.120.0370.12012.66
5.3.110.0200.09512.66
5.3.100.0310.07512.12
5.3.90.0190.06812.08
5.3.80.0160.08612.07
5.3.70.0180.09712.08
5.3.60.0190.08012.06
5.3.50.0170.06412.00
5.3.40.0140.05212.00
5.3.30.0080.05111.94
5.3.20.0120.04511.71
5.3.10.0100.04911.67
5.3.00.0130.05711.66

preferences:
140.17 ms | 1394 KiB | 7 Q