3v4l.org

run code in 300+ PHP versions simultaneously
<?php $db = array( 'host' => 'mysql.hostinger.nl', 'user' => 'u126267875_pepe', 'pass' => 'com-puter', 'dbname' => 'u126267875_medal' ); if (!mysql_connect($db['host'], $db['user'], $db['pass'])){ $_SESSION['foutcode'] = 'foutcode 002'; header('location: http://medalwars.url.ph/'); exit(); }elseif (!mysql_select_db($db['dbname'])){ $_SESSION['foutcode'] = 'foutcode 003'; header("location: $before"); exit(); } if($before == 'http://medalwars.url.ph/create_account/'){ if(empty($username) AND empty($password) AND empty($email)){ $_SESSION['foutcode'] = 'foutcode 007'; header("location: $before"); exit(); }elseif(empty($username) AND empty($password)){ $_SESSION['foutcode'] = 'foutcode 012'; header("location: $before"); exit(); }elseif(empty($username) AND empty($email)){ $_SESSION['foutcode'] = 'foutcode 013'; header("location: $before"); exit(); }elseif(empty($password) AND empty($email)){ $_SESSION['foutcode'] = 'foutcode 014'; header("location: $before"); exit(); }elseif(empty($username)){ $_SESSION['foutcode'] = 'foutcode 005'; header("location: $before"); exit(); }elseif(empty($password)){ $_SESSION['foutcode'] = 'foutcode 006'; header("location: $before"); exit(); }elseif(empty($email)){ $_SESSION['foutcode'] = 'foutcode 012'; header("location: $before"); exit(); } }elseif($before == 'http://medalwars.url.ph/'){ if(empty($username) AND empty($password)){ $_SESSION['foutcode'] = 'foutcode 007'; header("location: $before"); exit(); }elseif(empty($username)){ $_SESSION['foutcode'] = 'foutcode 005'; header("location: $before"); exit(); }elseif(empty($password)){ $_SESSION['foutcode'] = 'foutcode 006'; header("location: $before"); exit(); } } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /in/i5Tpm:8 Stack trace: #0 {main} thrown in /in/i5Tpm on line 8
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:
53.26 ms | 401 KiB | 8 Q