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 5.3.0 - 5.3.28, 5.4.0 - 5.4.28
Parse error: syntax error, unexpected ')' in /in/UjVXe on line 22
Process exited with code 255.

preferences:
185.02 ms | 1387 KiB | 65 Q