3v4l.org

run code in 300+ PHP versions simultaneously
<!--HTML5 + Bootstrap--> <!doctype html> <html lang="en"> <form action=Secur.php method=GET> <head> <meta charset="utf-8"/> <!--Bootstrap LINKS--> <link href="css/bootstrap.min.css" rel="stylesheet"> <link href="css/bootstrap.css" rel="stylesheet" media="screen"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <link href="css/clean-blog.css" rel="stylesheet"> <!--Fonts--> <link href='http://fonts.googleapis.com/css?family=Pacifico' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Bree+Serif' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Quicksand' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Yantramanav:400,100' rel='stylesheet' type='text/css'> <!--Javascript--> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/tooltip.js"></script> <!--CSS--><style> body{ position: relative; /* required */ background: url("") no-repeat fixed center; opacity: 0.9; filter: alpha(opacity=10); } label {font-family: 'Pacifico', cursive; serif; font-size: 35;} button {font-family: 'Quicksand', serif; font-size: 40px;} textarea {font-family: 'Quicksand', cursive; serif; font-size: 30px;} h1 {font-family: 'Pacifico', cursive; serif; font-size: 50px;} h2 { margin: 0; color: #fff; padding-top: 60px; font-size: 50px; font-family: 'Quicksand', serif; font-size: 27px; } print {font-family: 'Quicksand', serif; font-size: 27px;} h5 {font-family: 'Quicksand', cursive; serif; font-size: 24px; color: white;} p {font-family: 'Quicksand', sans-serif; text-indent: font-size: 17PX; text-align: justify;} a {font-family: 'Pacifico', cursive; serif; font-size: 30px; color: white;} li > a {font-family: 'Quicksand', sans-serif; font-size: 20px;} .nav-tabs > li, .nav-pills > li { float:none; display:inline-block; *display:inline; /* ie7 fix */ zoom:1; /* hasLayout ie7 trigger */ } .nav-tabs, .nav-pills{ text-align:center; } .dropdown-menu { left: 50%; right: auto; transform: translate(-50%, 0); } .dropdown-menu { left: 50%; right: auto; transform: translate(-50%, 0); } @media only screen and (min-width: 768px) { .navbar-custom { background: transparent; border-bottom: 1px solid transparent; } .navbar-custom .navbar-brand { color: black; padding: 20px; } .navbar-custom .navbar-brand:hover, .navbar-custom .navbar-brand:focus { color: rgba(000); } .footer{ position: fixed; text-align: center; bottom: 0px; width: 100%; } textarea{ width: 600px; height: 250px; } </style> <!--END CSS--> </head> <body> <nav class="navbar navbar-default navbar-custom navbar-fixed-top"> <div class="container-fluid"> <div class="navbar-header page-scroll"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="Secur.php">Data Security</a> </div> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav navbar-right"> <li> <a href="#" data-toggle="modal" data-target="#myModal"> <span class="glyphicon glyphicon-send" data-toggle="tooltip" data-placement="bottom" data-original-title="REGISTER"></span></a> </li> <li> <a href="Secur.php" data-toggle="tooltip" data-placement="bottom" data-original-title="Home"> <span class="glyphicon glyphicon-home"></span></a> </li> </ul> </div> </div> </nav> <!-- MODAL --> <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button> <h4 class="modal-title" id="myModalLabel">Register</h4> </div> <div class="modal-body"> <form class="form-horizontal"> <fieldset> <div class="form-group"> <label for="studentno" control-label"></label> <div class="col-lg-8 col-lg-offset-2"> <input type="text" class="form-control" id="studentno" name='studentno' min="11" max="11" maxlength="11" placeholder="Student Number"required> </div> </div> <div class="form-group"> <label for="studentname" control-label"></label> <div class="col-lg-8 col-lg-offset-2"> <input type="text" class="form-control" id="studentname" name='studentname' placeholder="Username" required> </div> </div> <div class="form-group"> <label for="email" control-label"></label> <div class="col-lg-8 col-lg-offset-2"> <input type="email" class="form-control" id="email" name='email'placeholder="Email Address" required> </div> </div> <div class="form-group"> <label for="password"control-label"></label> <div class="col-lg-8 col-lg-offset-2"> <input type="password" class="form-control" id="password" name='password' min="6" max="10" maxlength="10" placeholder="Password" required> </div> </div> </div> <?php mysql_connect("localhost",'root')or die("No connection"); mysql_select_db("dbdatasecur")or die("No database"); $query = "SELECT * FROM `useraccounts`"; $result = mysql_query($query); while(mysql_fetch_array($result)); ?> <div class="modal-footer"> <div id="myButtons"> <button type="button" class="btn btn-danger" data-dismiss="modal"><span class="glyphicon glyphicon-minus"></span> Close</button> <button type=reset name='clear' value="Clear" class="btn btn-warning"><span class="glyphicon glyphicon-remove"></span> Clear</button> <button type=submit name='save' value="Save" class="btn btn-success"><span class="glyphicon glyphicon-plus"></span> Save?</button><br><br> </div> </div> <?php mysql_connect("localhost",'root')or die("No connection"); mysql_select_db("dbdatasecur")or die("No database"); if(isset($_GET["save"])){ $a=$_GET["studentno"]; $b=$_GET["studentname"]; $c=$_GET["email"]; $d=$_GET["password"]; $check="SELECT * FROM useraccounts where studentno='$a'"; $result=mysql_query($check); $count=mysql_num_rows($result); if($count==0){ $insert="INSERT INTO useraccounts VALUES('$a','$b','$c',md5('$d'))"; mysql_query($insert); echo '<script language="javascript">'; echo 'alert("Registered Successfully!")'; echo '</script>'; }else echo '<script language="javascript">'; echo 'alert("Already Registered.")'; echo '</script>'; } ?> </div> </div> </div> </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)
8.3.70.0090.00616.63
8.3.60.0070.00718.43
8.3.50.0110.01121.21
8.3.40.0110.00418.83
8.3.30.0110.00318.75
8.3.20.0040.00420.29
8.3.10.0140.00021.92
8.3.00.0040.00420.34
8.2.180.0070.01116.50
8.2.170.0110.00422.96
8.2.160.0030.01022.08
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0030.00617.63
8.2.110.0060.00322.16
8.2.100.0030.00919.48
8.2.90.0000.00719.08
8.2.80.0000.00817.97
8.2.70.0080.00017.63
8.2.60.0000.00817.93
8.2.50.0030.00518.07
8.2.40.0040.00419.39
8.2.30.0040.00420.59
8.2.20.0040.00417.65
8.2.10.0000.00818.04
8.2.00.0050.00218.02
8.1.280.0070.00725.92
8.1.270.0030.00923.97
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.54
8.1.230.0000.01117.42
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0040.00417.10
8.1.180.0030.00518.10
8.1.170.0040.00418.64
8.1.160.0060.00322.05
8.1.150.0040.00418.85
8.1.140.0080.00017.25
8.1.130.0000.00817.66
8.1.120.0070.00017.36
8.1.110.0000.00717.34
8.1.100.0000.00717.43
8.1.90.0040.00417.39
8.1.80.0000.00717.31
8.1.70.0030.00317.31
8.1.60.0030.00617.56
8.1.50.0030.00617.39
8.1.40.0000.00817.48
8.1.30.0030.00617.60
8.1.20.0040.00417.64
8.1.10.0000.00717.52
8.1.00.0020.00517.51
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0030.00318.49
8.0.270.0040.00417.37
8.0.260.0030.00317.32
8.0.250.0070.00016.96
8.0.240.0030.00317.02
8.0.230.0030.00717.02
8.0.220.0050.00217.00
8.0.210.0000.00817.00
8.0.200.0000.00716.95
8.0.190.0080.00317.00
8.0.180.0080.00416.88
8.0.170.0070.00417.02
8.0.160.0000.00816.99
8.0.150.0070.00016.75
8.0.140.0000.00716.90
8.0.130.0070.00013.38
8.0.120.0030.00816.93
8.0.110.0040.00416.84
8.0.100.0050.00316.96
8.0.90.0070.00016.82
8.0.80.0090.00616.91
8.0.70.0000.00716.73
8.0.60.0000.00716.97
8.0.50.0000.00717.00
8.0.30.0060.01117.07
8.0.20.0080.01317.40
8.0.10.0080.00017.00
8.0.00.0080.01016.77
7.4.330.0000.00515.08
7.4.320.0000.00616.41
7.4.300.0060.00016.59
7.4.290.0050.00516.54
7.4.280.0000.00816.48
7.4.270.0030.00316.49
7.4.260.0000.00716.52
7.4.250.0040.00416.49
7.4.240.0020.00616.55
7.4.230.0030.00516.30
7.4.220.0240.00316.34
7.4.210.0090.00916.56
7.4.200.0000.00716.48
7.4.160.0030.01416.53
7.4.150.0150.00417.40
7.4.140.0090.01117.86
7.4.130.0120.00516.50
7.4.120.0110.00916.54
7.4.110.0100.00716.70
7.4.100.0190.00316.40
7.4.90.0090.00916.35
7.4.80.0060.01219.39
7.4.70.0070.01016.49
7.4.60.0030.01316.38
7.4.50.0000.00516.45
7.4.40.0070.01016.35
7.4.30.0110.00716.42
7.4.00.0060.01014.87
7.3.330.0000.00613.16
7.3.320.0050.00013.22
7.3.310.0000.00716.27
7.3.300.0000.00716.15
7.3.290.0050.01116.28
7.3.280.0090.00716.31
7.3.270.0090.00817.40
7.3.260.0080.01216.32
7.3.250.0120.00616.44
7.3.240.0060.01716.33
7.3.230.0060.01216.49
7.3.210.0070.01016.41
7.3.200.0090.01216.43
7.3.190.0130.00316.50
7.3.180.0090.00616.35
7.3.170.0070.01116.58
7.3.160.0080.00816.30
7.3.10.0030.01016.61
7.3.00.0070.00716.58
7.2.330.0070.01016.36
7.2.320.0100.01416.66
7.2.310.0040.01216.44
7.2.300.0100.01416.42
7.2.290.0120.00616.73
7.2.130.0080.00616.86
7.2.120.0070.00716.80
7.2.110.0040.01116.88
7.2.100.0070.00316.80
7.2.90.0030.01016.71
7.2.80.0060.00316.88
7.2.70.0090.00016.65
7.2.60.0050.00916.99
7.2.50.0000.00916.99
7.2.40.0000.01516.80
7.2.30.0000.01316.98
7.2.20.0030.00916.93
7.2.10.0030.00616.95
7.2.00.0070.00717.96
7.1.250.0100.00615.21
7.1.200.0040.00415.41
7.1.100.0070.01018.21
7.1.70.0000.01016.96
7.1.60.0130.01319.11
7.1.50.0120.01216.52
7.1.00.0030.07722.40
7.0.200.0050.00316.77
7.0.60.0030.08019.98
7.0.50.0100.08017.93
7.0.40.0070.06020.07
7.0.30.0230.03720.09
7.0.20.0230.07720.08
7.0.10.0000.07320.24
7.0.00.0130.09320.09
5.6.280.0030.07020.78
5.6.210.0100.08020.68
5.6.200.0070.07318.16
5.6.190.0030.04720.61
5.6.180.0230.05320.41
5.6.170.0130.05020.50
5.6.160.0170.07020.32
5.6.150.0170.05018.11
5.6.140.0000.09318.15
5.6.130.0130.06318.21
5.6.120.0200.06721.12
5.6.110.0070.07020.90
5.6.100.0130.08321.12
5.6.90.0100.06720.96
5.6.80.0100.08020.45
5.5.350.0030.08720.34
5.5.340.0130.06718.01
5.5.330.0130.08020.21
5.5.320.0370.05020.24
5.5.310.0230.04720.29
5.5.300.0070.06017.98
5.5.290.0130.07018.00
5.5.280.0170.07720.75
5.5.270.0070.06720.75
5.5.260.0030.06020.88
5.5.250.0100.07320.60
5.5.240.0000.06320.30
5.4.450.1030.05319.63
5.4.440.1000.06319.45
5.4.430.0930.06019.24
5.4.420.1000.05719.45
5.4.410.0970.06019.14
5.4.400.0770.05019.29
5.4.390.1030.05019.12
5.4.380.0930.05719.12
5.4.370.0970.05319.09
5.4.360.1170.06318.99
5.4.350.1000.05318.95
5.4.340.0930.06319.30
5.4.320.1030.04718.95
5.4.310.0970.05719.22
5.4.300.1030.04719.28
5.4.290.0970.05719.31
5.4.280.1000.05019.28
5.4.270.1000.05018.77
5.4.260.1030.05019.25
5.4.250.1030.05319.16
5.4.240.1330.05718.99
5.4.230.1100.04318.91
5.4.220.0970.07319.19
5.4.210.1000.05319.14
5.4.200.1070.05019.28
5.4.190.1000.05019.30
5.4.180.1170.04019.18
5.4.170.1030.05319.13
5.4.160.1030.04718.93
5.4.150.0500.05719.24
5.4.140.0100.05016.24
5.4.130.0130.04316.27
5.4.120.0030.05716.50
5.4.110.1030.05316.45
5.4.100.1030.05016.40
5.4.90.0900.05016.23
5.4.80.0930.05716.52
5.4.70.0230.04316.45
5.4.60.0000.03316.37
5.4.50.0030.03716.38
5.4.40.0330.06316.14
5.4.30.0330.06316.36
5.4.20.0000.07716.36

preferences:
66.12 ms | 401 KiB | 5 Q