3v4l.org

run code in 300+ PHP versions simultaneously
<?php include "global.php"; ?> <!DOCTYPE html> <!--[if lt IE 7 ]> <html lang="en" class="ie6 ielt8"> <![endif]--> <!--[if IE 7 ]> <html lang="en" class="ie7 ielt8"> <![endif]--> <!--[if IE 8 ]> <html lang="en" class="ie8"> <![endif]--> <!--[if (gte IE 9)|!(IE)]><!--> <html lang="en"> <!--<![endif]--> <head> <meta charset="utf-8"> <link rel="stylesheet" type="text/css" href="login.css" /> </head> <body> <div class="container"> <section id="content"> <form method="POST"> <h1><?php echo $SYS_NAAM; ?></h1> <div> <input type="text" placeholder="Gebruikersnaam" required="" name="username" /> </div> <div> <input type="password" placeholder="Wachtwoord" required="" name="password" /> </div> <div> <input type="submit" value="Inloggen!" /> <a href="wachtwoord_vergeten.php">Wachtwoord vergeten?</a> </div> </form><!-- form --> </section><!-- content --> </div><!-- container --> </body> </html> <?php if ($_SERVER['REQUEST_METHOD'] == "POST") { $sql = mysqli_query($c, "SELECT username,password FROM personeel,administrators WHERE username='".mysqli_real_escape_string($c, $_POST['username'])."'AND password='".mysqli_real_escape_string($c, sha1($_POST['password']))."'") ; if ($sql == TRUE) { setcookie("username", $_POST['username'], time()+1800); setcookie("loggedin", TRUE, time()+1800); unset ($_POST); Header ("Location: landing.php"); } else { echo mysqli_error($c); //Hier straks: "Gegevens niet gevonden" van maken } //Sluit COOKIE/REDIRECT/SQL maken af } //sluit IF METHOD POST ?>

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.0070.00419.02
7.1.100.0040.01118.25
7.1.70.0000.01017.13
7.1.60.0060.01919.40
7.1.50.0160.00716.93
7.1.00.0000.03722.47
7.0.200.0230.00316.82
7.0.140.0100.06721.95
7.0.90.0030.07319.98
7.0.80.0030.05719.98
7.0.70.0600.07019.93
7.0.60.0370.06720.07
7.0.50.0430.05320.35
7.0.40.0070.05020.15
7.0.30.0130.08020.04
7.0.20.0030.05320.18
7.0.10.0070.04720.18
7.0.00.0030.08320.07
5.6.280.0070.06721.13
5.6.240.0130.07320.72
5.6.230.0100.08020.56
5.6.220.0100.07720.57
5.6.210.0030.08020.56
5.6.200.0130.04721.05
5.6.190.0100.04321.08
5.6.180.0030.08721.03
5.6.170.0100.07720.93
5.6.160.0100.08020.92
5.6.150.0070.08321.13
5.6.140.0070.08720.95
5.6.130.0170.08321.16
5.6.120.0070.07721.05
5.6.110.0070.08320.89
5.6.100.0030.07720.94
5.6.90.0070.08321.04
5.6.80.0070.08020.55
5.6.70.0070.08020.51
5.6.60.0030.08020.37
5.6.50.0100.05720.40
5.6.40.0070.03720.30
5.6.30.0070.06320.42
5.6.20.0130.07320.43
5.6.10.0070.05020.28
5.6.00.0000.08320.37
5.5.380.0000.08720.45
5.5.370.0030.05020.39
5.5.360.0070.04020.50
5.5.350.0100.07720.42
5.5.340.0100.06020.83
5.5.330.0130.07320.83
5.5.320.0100.08020.76
5.5.310.0070.05020.76
5.5.300.0070.07320.64
5.5.290.0070.08720.76
5.5.280.0170.06020.80
5.5.270.0070.08320.77
5.5.260.0030.08020.79
5.5.250.0070.07320.70
5.5.240.0030.08020.27
5.5.230.0170.04720.26
5.5.220.0100.06320.10
5.5.210.0170.07020.14
5.5.200.0100.06020.24
5.5.190.0100.08320.15
5.5.180.0070.07720.27
5.5.160.0170.04720.26
5.5.150.0030.04320.22
5.5.140.0030.08020.08
5.5.130.0100.07020.21
5.5.120.0130.07020.17
5.5.110.0070.08020.07
5.5.100.0000.06320.07
5.5.90.0130.04319.97
5.5.80.0070.04019.97
5.5.70.0070.08020.14
5.5.60.0100.03320.15
5.5.50.0030.06720.14
5.5.40.0100.05720.11
5.5.30.0070.03720.13
5.5.20.0000.04320.09
5.5.10.0170.06720.12
5.5.00.0100.07720.02
5.4.450.0070.08719.45
5.4.440.0130.07319.45
5.4.430.0030.07019.36
5.4.420.0100.03719.31
5.4.410.0100.05019.30
5.4.400.0100.04318.82
5.4.390.0170.06019.14
5.4.380.0100.06719.04
5.4.370.0130.07019.24
5.4.360.0070.06719.06
5.4.350.0100.07719.24
5.4.340.0070.07319.08
5.4.320.0030.08718.99
5.4.310.0100.03718.98
5.4.300.0170.06718.96
5.4.290.0070.04719.08
5.4.280.0030.08019.09
5.4.270.0200.05019.13
5.4.260.0100.03718.95
5.4.250.0100.05319.16
5.4.240.0130.05318.95
5.4.230.0000.05319.06
5.4.220.0100.07318.80
5.4.210.0000.08019.07
5.4.200.0100.05319.10
5.4.190.0030.05319.00
5.4.180.0130.04718.94
5.4.170.0030.05719.04
5.4.160.0000.04018.88
5.4.150.0070.03719.11
5.4.140.0070.07316.33
5.4.130.0130.06716.13
5.4.120.0000.07316.27
5.4.110.0000.03716.44
5.4.100.0070.07316.34
5.4.90.0000.06016.41
5.4.80.0070.03016.34
5.4.70.0000.06716.47
5.4.60.0000.04016.34
5.4.50.0030.07016.22
5.4.40.0070.06716.29
5.4.30.0030.07016.36
5.4.20.0130.04716.42
5.4.10.0030.06016.29
5.4.00.0070.03715.80
5.3.290.0100.05714.54
5.3.280.0130.03014.61
5.3.270.0000.08014.47
5.3.260.0070.05714.57
5.3.250.0100.06014.62
5.3.240.0030.07014.60
5.3.230.0130.06714.46
5.3.220.0070.03314.56
5.3.210.0130.07014.54
5.3.200.0030.03314.54
5.3.190.0130.07314.39
5.3.180.0070.04014.56
5.3.170.0000.07314.58
5.3.160.0070.03314.43
5.3.150.0070.07314.45
5.3.140.0000.08014.52
5.3.130.0030.07714.56
5.3.120.0000.04714.53
5.3.110.0030.06014.37
5.3.100.0030.04713.98
5.3.90.0100.04313.98
5.3.80.0070.03313.97
5.3.70.0070.07013.88
5.3.60.0030.04013.92
5.3.50.0070.04013.95
5.3.40.0070.05713.81
5.3.30.0070.06713.91
5.3.20.0030.04713.61
5.3.10.0130.03313.52
5.3.00.0130.06713.64
5.2.170.0070.06310.98
5.2.160.0030.06011.00
5.2.150.0130.05311.10
5.2.140.0070.02710.98
5.2.130.0030.03010.90
5.2.120.0030.03311.13
5.2.110.0000.03010.95
5.2.100.0030.03311.18
5.2.90.0030.06011.16
5.2.80.0000.06311.09
5.2.70.0000.05311.09
5.2.60.0000.05711.11
5.2.50.0130.05010.85
5.2.40.0000.06010.96
5.2.30.0000.04310.97
5.2.20.0070.02710.83
5.2.10.0030.06010.93
5.2.00.0070.05310.80
5.1.60.0030.02310.29
5.1.50.0070.03310.31
5.1.40.0000.05010.31
5.1.30.0000.04710.31
5.1.20.0030.02310.42
5.1.10.0000.03010.31
5.1.00.0070.02710.31
5.0.50.0000.04310.31
5.0.40.0030.03710.31
5.0.30.0000.03310.31
5.0.20.0030.04310.31
5.0.10.0000.03310.31
5.0.00.0100.05710.31
4.4.90.0070.02710.29
4.4.80.0100.03010.29
4.4.70.0100.02710.29
4.4.60.0030.02310.29
4.4.50.0000.03710.29
4.4.40.0030.02310.31
4.4.30.0070.03010.31
4.4.20.0000.02010.31
4.4.10.0000.03310.31
4.4.00.0030.03310.31
4.3.110.0030.03010.31
4.3.100.0000.01310.31
4.3.90.0030.01310.31
4.3.80.0070.05010.31
4.3.70.0030.03010.31
4.3.60.0000.02310.31
4.3.50.0030.03010.31
4.3.40.0000.05010.31
4.3.30.0000.03310.31
4.3.20.0000.02710.31
4.3.10.0030.02710.31
4.3.00.0000.03710.31

preferences:
37.33 ms | 401 KiB | 5 Q