3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: include(): open_basedir restriction in effect. File(inc/include.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/2BaMK on line 3 Warning: include(inc/include.php): Failed to open stream: Operation not permitted 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 8.0.13
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 5.2.3 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0, 7.3.32 - 7.3.33, 7.4.33
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 7.2.29 - 7.2.33, 7.3.12 - 7.3.31, 7.4.0 - 7.4.32
Warning: include(): open_basedir restriction in effect. File(inc/include.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/2BaMK on line 3 Warning: include(inc/include.php): failed to open stream: Operation not permitted 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 5.1.0 - 5.1.6, 5.2.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 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 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

preferences:
260.4 ms | 402 KiB | 354 Q