3v4l.org

run code in 300+ PHP versions simultaneously
<?php $admin_password = "admin"; // senha da área de administração (/admin) $mysql_hostname = "localhost"; // servidor MySQL $mysql_user = "root"; // usuário MySQL $mysql_password = ""; // senha MySQL $mysql_database = "bookface"; // banco de dados MySQL $prefix = ""; // prefixo das tabelas (desnecessário) // não configure aqui $installed = true; // $env = $_SERVER['QUERY_STRING']; $naofaz = Array("order", "concat", "union", "ORDER", "CONCAT", "UNION", "select", "SELECT", "drop", "DROP"); $env = str_replace($naofaz, "%SQLI", $env); if(strpos($env, "%SQLI")!=false OR @mysql_error()!=null) { die('<script> location.href="about:blank"; </script>'); } $bd = mysql_connect($mysql_hostname, $mysql_user, $mysql_password) or die("Could not connect database"); mysql_select_db($mysql_database, $bd) or die("Could not select database"); $con = mysql_connect($mysql_hostname, $mysql_user, $mysql_password) or die("Could not connect database"); mysql_select_db($mysql_database, $con) or die("Could not select database"); $conn = mysql_connect($mysql_hostname, $mysql_user, $mysql_password) or die("Could not connect database"); mysql_select_db($mysql_database, $conn) or die("Could not select database"); $link = mysql_connect($mysql_hostname, $mysql_user, $mysql_password) or die("Could not connect database"); mysql_select_db($mysql_database, $link) or die("Could not select database"); $db = mysql_select_db($mysql_database) or die("Could not select database"); if($installed==false) { die("<script> location.href='install/'; </script>"); } if(is_dir("install") AND $installed==true) { die("Exclua o diretório \"install\" para continuar."); } if(!is_writable("uploadedimage")) { die("Falta CHMOD 777 em \"uploadedimage\""); } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "QUERY_STRING" in /in/RmA0R on line 11 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /in/RmA0R on line 13 Fatal error: Uncaught Error: Call to undefined function mysql_error() in /in/RmA0R:14 Stack trace: #0 {main} thrown in /in/RmA0R on line 14
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
37.9 ms | 402 KiB | 8 Q