3v4l.org

run code in 300+ PHP versions simultaneously
<?php include "config.php"; if(empty($_REQUEST["action"])) $template->display("join.html"); else { $username=$_REQUEST["username"]; $password=$_REQUEST["password"]; $email=$_REQUEST["email"]; $sponsor = @$_COOKIE["sponsor_id"]; if (!preg_match("^[a-zA-Z0-9.-_]+\@[a-zA-Z0-9.-_]\+.[a-zA-Z0-9.-_]+$",$email)); die ("Not a valid email format!"); if (!preg_match("^[A-Za-z0-9_]+$",$username)); die ("Username contains an unallowed characters"); $num=mysql_num_rows(mysql_query("select id from members where username ='$username'")); if ($num>0) die ("Username already taken"); $template->assign("custom_key",NEW_MEMBER . "|$username|$password|$email|$sponsor"); $template->assign("username",$username); $template->assign(array("aftersignup"=>$aftersignup, "cancel_page"=>$cancel_page)); $template->display("order.html"); }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: include(): open_basedir restriction in effect. File(config.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/C5KPG on line 2 Warning: include(config.php): Failed to open stream: Operation not permitted in /in/C5KPG on line 2 Warning: include(): Failed opening 'config.php' for inclusion (include_path='.:') in /in/C5KPG on line 2 Warning: Undefined variable $template in /in/C5KPG on line 4 Fatal error: Uncaught Error: Call to a member function display() on null in /in/C5KPG:4 Stack trace: #0 {main} thrown in /in/C5KPG on line 4
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:
44.51 ms | 402 KiB | 8 Q