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>

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)
7.2.00.0090.00919.41
7.1.70.0030.00617.18
7.1.60.0130.01019.33
7.1.50.0100.01316.91
7.1.00.0000.08022.38
7.0.200.0090.00616.85
7.0.140.0070.07022.01
7.0.60.0200.06019.90
7.0.50.0030.04317.85
7.0.40.0030.04719.98
7.0.30.0200.05320.00
7.0.20.0130.04320.11
7.0.10.0130.08320.00
7.0.00.0200.07020.33
5.6.280.0000.07721.04
5.6.210.0130.06020.78
5.6.200.0130.08018.15
5.6.190.0030.07320.43
5.6.180.0230.08320.36
5.6.170.0170.06020.48
5.6.160.0100.05320.71
5.6.150.0070.08318.18
5.6.140.0030.04318.13
5.6.130.0070.08318.21
5.6.120.0030.07321.06
5.6.110.0100.06720.99
5.6.100.0070.08321.14
5.6.90.0070.07020.98
5.6.80.0070.08720.52
5.5.350.0070.07320.45
5.5.340.0030.08317.91
5.5.330.0100.08020.47
5.5.320.0330.06320.26
5.5.310.0430.06720.26
5.5.300.0170.06317.97
5.5.290.0030.08717.92
5.5.280.0070.05720.81
5.5.270.0070.08020.77
5.5.260.0030.08320.68
5.5.250.0100.08320.67
5.5.240.0100.07020.16
5.4.450.0200.07319.13
5.4.440.0300.04319.46
5.4.430.0170.07719.45
5.4.420.0170.08019.48
5.4.410.0300.06019.34
5.4.400.0230.07018.92
5.4.390.0170.04719.05
5.4.380.0270.04018.92
5.4.370.0370.06319.17
5.4.360.0270.06718.92
5.4.350.0200.03718.83
5.4.340.0270.07019.13
5.4.320.0370.05019.22
5.4.310.0370.06018.80
5.4.300.0230.03719.07
5.4.290.0170.04719.24
5.4.280.0140.06612.36
5.4.270.0100.05112.36
5.4.260.0200.08012.36
5.4.250.0200.08212.36
5.4.240.0100.06212.36
5.4.230.0090.07312.35
5.4.220.0120.07812.35
5.4.210.0150.06412.35
5.4.200.0190.07412.35
5.4.190.0150.05712.35
5.4.180.0290.05712.34
5.4.170.0120.04912.36
5.4.160.0120.05712.35
5.4.150.0170.05312.34
5.4.140.0100.03812.03
5.4.130.0130.04812.02
5.4.120.0100.05711.98
5.4.110.0130.06011.97
5.4.100.0340.09111.97
5.4.90.0090.05811.97
5.4.80.0100.05911.97
5.4.70.0150.06111.97
5.4.60.0150.06611.97
5.4.50.0070.04211.97
5.4.40.0100.03511.95
5.4.30.0080.04211.95
5.4.20.0150.05111.96
5.4.10.0170.06011.95
5.4.00.0080.06611.45
5.3.290.3600.03714.52
5.3.280.0290.04412.71
5.3.270.0240.04412.73
5.3.260.0120.06012.72
5.3.250.0350.06112.72
5.3.240.0200.07612.72
5.3.230.0250.06012.71
5.3.220.0120.05512.68
5.3.210.0130.04512.68
5.3.200.0130.03612.68
5.3.190.0070.04712.68
5.3.180.0200.06512.67
5.3.170.0160.09312.67
5.3.160.0090.04512.67
5.3.150.0170.04212.68
5.3.140.0230.05612.66
5.3.130.0090.06112.66
5.3.120.0140.08612.66
5.3.110.0100.06112.66
5.3.100.0090.05312.11
5.3.90.0150.04812.08
5.3.80.0110.05012.07
5.3.70.0090.04412.07
5.3.60.0090.05712.07
5.3.50.0120.05912.00
5.3.40.0200.10112.00
5.3.30.0170.06211.95
5.3.20.0110.04811.74
5.3.10.0090.05011.70
5.3.00.0140.04511.69
5.2.170.0070.0469.19
5.2.160.0070.0429.19
5.2.150.0070.0389.19
5.2.140.0090.0429.19
5.2.130.0080.0459.15
5.2.120.0060.0409.15
5.2.110.0120.0379.16
5.2.100.0040.0429.15
5.2.90.0160.0319.14
5.2.80.0110.0409.14
5.2.70.0090.0449.14
5.2.60.0090.0429.09
5.2.50.0120.0419.07
5.2.40.0120.0349.04
5.2.30.0080.0429.02
5.2.20.0140.0359.00
5.2.10.0310.1108.96
5.2.00.0040.0548.83
5.1.60.0100.0348.13
5.1.50.0080.0358.11
5.1.40.0060.0398.09
5.1.30.0070.0398.44
5.1.20.0060.0428.46
5.1.10.0070.0408.19
5.1.00.0070.0428.19
5.0.50.0060.0316.67
5.0.40.0070.0286.53
5.0.30.0040.0506.34
5.0.20.0080.0276.32
5.0.10.0050.0346.29
5.0.00.0040.0486.28
4.4.90.0060.0254.78
4.4.80.0040.0264.75
4.4.70.0060.0274.75
4.4.60.0060.0244.75
4.4.50.0060.0344.77
4.4.40.0050.0404.71
4.4.30.0050.0294.75
4.4.20.0030.0284.84
4.4.10.0080.0244.85
4.4.00.0090.0464.76
4.3.110.0100.0274.67
4.3.100.0100.0204.67
4.3.90.0030.0274.63
4.3.80.0050.0394.59
4.3.70.0050.0254.63
4.3.60.0030.0264.63
4.3.50.0090.0204.63
4.3.40.0060.0484.54
4.3.30.0020.0273.35
4.3.20.0050.0243.32
4.3.10.0040.0233.29
4.3.00.0070.03013.91

preferences:
35.23 ms | 401 KiB | 5 Q