3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php session_start(); include("inc/include.php"); if(!isset($_SESSION['sess_id'])) { header("Location: index"); exit; } $query = $config['mysql_connection']->prepare("SELECT SUM(`uSize`) FROM `uploads` WHERE `uUser` = ? AND `uRemoved` = 0"); $query->execute(array($_SESSION['sess_id'])); $used = $query->fetchColumn(); ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="shortcut icon" href="<?php echo $config['favicon']; ?>"> <title><?php echo $config['name']; ?></title> <!-- Bootstrap --> <link href="<?php echo $config['style'][0]; ?>" rel="stylesheet"> <link href="<?php echo $config['fa']; ?>" rel="stylesheet"> <link href="<?php echo $config['social']; ?>" rel="stylesheet"> <link href="css/quacco.css" rel="stylesheet"> <link href="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/css/jquery.dataTables.css" rel="stylesheet"> <style> #dropbox { height: 116px; text-align: center; padding-top: 47px; font-weight: bold; letter-spacing: 1px; } .db-active { background: #dd4814; color: #ffffff; box-shadow: 0px 0px 5px 6px #cccccc; } .preview { border: 1px solid #CDCDCD; width: 450px; padding: 10px; height:auto; overflow: auto; color: #4D4D4D; float: left; box-shadow:3px 3px 3px #888888; border-radius: 2px; } .preview-image { box-shadow: 3px 3px 3px #888888; width: 70px; height: 70px; float: left; margin-right: 10px; } .file-info { height: 50px; float: left; width: auto; margin-bottom: 10px; border: 1px solid blue; } .file-info span { margin: 3px 2px; font-size: 12px; float:left; display: block; min-width: 100px; overflow: auto; border: 1px solid red; overflow: none; } .progress { margin-bottom: 3px; } </style> </head>
Output for 5.2.3 - 5.6.28, 7.0.0 - 7.1.0
Warning: include(inc/include.php): failed to open stream: No such file or directory in /in/2BaMK on line 3 Warning: include(): Failed opening 'inc/include.php' for inclusion (include_path='.:') in /in/2BaMK on line 3 Warning: Cannot modify header information - headers already sent by (output started at /in/2BaMK:3) in /in/2BaMK on line 7
Output for hhvm-3.12.0
Warning: File not found: inc/include.php in /in/2BaMK on line 3
Output for hhvm-3.10.0
Warning: File not found: inc/include.php in /in/2BaMK on line -1
Output for 5.1.0 - 5.2.2
Warning: session_start(): Cannot send session cookie - headers already sent in /in/2BaMK on line 2 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/2BaMK:2) in /in/2BaMK on line 2 Warning: include(inc/include.php): failed to open stream: No such file or directory in /in/2BaMK on line 3 Warning: include(): Failed opening 'inc/include.php' for inclusion (include_path='.:') in /in/2BaMK on line 3
Output for 4.3.2 - 5.0.5
Warning: session_start(): Cannot send session cookie - headers already sent in /in/2BaMK on line 2 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/2BaMK:2) in /in/2BaMK on line 2 Warning: main(inc/include.php): failed to open stream: No such file or directory in /in/2BaMK on line 3 Warning: main(): Failed opening 'inc/include.php' for inclusion (include_path='.:') in /in/2BaMK on line 3
Output for 4.3.0 - 4.3.1
Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cookie - headers already sent in /in/2BaMK on line 2 Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cache limiter - headers already sent (output started at /in/2BaMK:2) in /in/2BaMK on line 2 Warning: main(inc/include.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/2BaMK on line 3 Warning: main() [http://www.php.net/function.main]: Failed opening 'inc/include.php' for inclusion (include_path='.:') in /in/2BaMK on line 3