3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Defineer functie function error($link) { header('Refresh: 3; url=' . $link.php . ''); } if($_SERVER['REQUEST_METHOD'] == 'POST') // Controle of er op de knop is geklikt. { include_once "connect.php"; // Connectie db. if(!empty($_POST['gebruikersnaam']) AND !empty($_POST['password']) AND !empty($_POST['passwordc']) AND !empty($_POST['mail'])) // Controle op invoeren { if(($_POST['password']) == ($_POST['passwordc'])) // Controle of controle pw overeenkomt met echte pw. { include_once 'uwx3g.php'; // Connectie met salt page. $gebruikersnaam = mysql_real_escape_string($_POST['gebruikersnaam']); //Data veilig maken voor sql injectie d.m.v. mysql_real..... $password = sha1(salt($_POST['password'])); //sha1 hash van pass. Inclusief salt. $mail = mysql_real_escape_string($_POST['mail']); $sql = ("SELECT gebruikersnaam FROM gebruikers WHERE gebruikersnaam='". $gebruikersnaam . "'"); // Controle op gebruikersnaam, zo ja een 1 else en 0 (zie controle bij de volgende if) $uitvoer = mysql_query($sql); //($row = mysql_fetch_assoc($get)) $controle = mysql_num_rows($uitvoer); if($controle == 0) // Als uitvoer is 0 registreren. { mysql_query("INSERT INTO gebruikers (id, gebruikersnaam, password, mail, datum) VALUES ('','" . $gebruikersnaam . "', '" . $password . "', '" . $mail . "', '" . now() . "')"); // Gebruiker in db plaatsen. header('Refresh: 4; url=login.php'); exit ('U bent succesvol aangemeld, u kunt nu inloggen.'); } else { header('Refresh: 2; url=registreren.php'); exit ('Verkeerde gebruikersnaam of wachtwoord.'); // Negatieve melding van ingevoerde gegevens. } } else { error(registreren.php); exit ('De ingevoerde gegevens kloppen niet, u heeft het controle wachtwoord verkeerd ingevuld.'); // Negatieve melding van ingevoerde gegevens. } } else { error(registreren.php); exit ('De ingevoerde gegevens kloppen niet, niet alles is ingevuld.'); // Negatieve melding van ingevoerde gegevens. } } else { error(registreren.php); exit ('U bent op de verkeerde pagina gekomen, U wordt doorverwezen.'); } ?>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: Undefined array key "REQUEST_METHOD" in /in/JvDOA on line 9 Fatal error: Uncaught Error: Undefined constant "registreren" in /in/JvDOA:56 Stack trace: #0 {main} thrown in /in/JvDOA on line 56
Process exited with code 255.
Output for 7.2.5 - 7.2.33, 7.3.12 - 7.3.31, 7.4.0 - 7.4.33
Notice: Undefined index: REQUEST_METHOD in /in/JvDOA on line 9 Warning: Use of undefined constant registreren - assumed 'registreren' (this will throw an Error in a future version of PHP) in /in/JvDOA on line 56 Warning: Use of undefined constant php - assumed 'php' (this will throw an Error in a future version of PHP) in /in/JvDOA on line 56 Warning: Use of undefined constant php - assumed 'php' (this will throw an Error in a future version of PHP) in /in/JvDOA on line 6 Warning: Cannot modify header information - headers already sent by (output started at /in/JvDOA:9) in /in/JvDOA on line 6 U bent op de verkeerde pagina gekomen, U wordt doorverwezen.
Output for 7.3.32 - 7.3.33
Warning: Use of undefined constant registreren - assumed 'registreren' (this will throw an Error in a future version of PHP) in /in/JvDOA on line 56 Warning: Use of undefined constant php - assumed 'php' (this will throw an Error in a future version of PHP) in /in/JvDOA on line 56 Warning: Use of undefined constant php - assumed 'php' (this will throw an Error in a future version of PHP) in /in/JvDOA on line 6 Warning: Cannot modify header information - headers already sent by (output started at /in/JvDOA:56) in /in/JvDOA on line 6 U bent op de verkeerde pagina gekomen, U wordt doorverwezen.
Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20
Notice: Undefined index: REQUEST_METHOD in /in/JvDOA on line 9 Notice: Use of undefined constant registreren - assumed 'registreren' in /in/JvDOA on line 56 Notice: Use of undefined constant php - assumed 'php' in /in/JvDOA on line 56 Notice: Use of undefined constant php - assumed 'php' in /in/JvDOA on line 6 Warning: Cannot modify header information - headers already sent by (output started at /in/JvDOA:9) in /in/JvDOA on line 6 U bent op de verkeerde pagina gekomen, U wordt doorverwezen.
Output for 5.2.3 - 5.2.17
Notice: Undefined index: REQUEST_METHOD in /in/JvDOA on line 9 Notice: Use of undefined constant registreren - assumed 'registreren' in /in/JvDOA on line 56 Notice: Use of undefined constant php - assumed 'php' in /in/JvDOA on line 56 Notice: Use of undefined constant php - assumed 'php' in /in/JvDOA on line 6 Warning: Cannot modify header information - headers already sent by (output started at /in/JvDOA:9) in /in/JvDOA on line 6 U bent op de verkeerde pagina gekomen, U wordt doorverwezen.
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.2
Notice: Undefined index: REQUEST_METHOD in /in/JvDOA on line 9 Notice: Use of undefined constant registreren - assumed 'registreren' in /in/JvDOA on line 56 Notice: Use of undefined constant php - assumed 'php' in /in/JvDOA on line 56 Notice: Use of undefined constant php - assumed 'php' in /in/JvDOA on line 6 U bent op de verkeerde pagina gekomen, U wordt doorverwezen.

preferences:
221.38 ms | 403 KiB | 314 Q