3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php include 'functions.php'; $typ = $_GET['type']; if($typ == 'loot'){ $item = htmlspecialchars($_GET['item']); $itemid = htmlspecialchars($_GET['itemid']); $itemimage = htmlspecialchars($_GET['itemimage']); $enemies = htmlspecialchars($_GET['enemies']); $players = htmlspecialchars($_GET['players']); //if(!($item || $itemid || $itemimage || $enemies || $players)){ mysql_query("INSERT INTO test_loots (itemid, itemimage, enemies, players, item) VALUES ('$itemid', '$itemimage', '$enemies', '$players', '$item')"); //} } ?>
Output for 5.5.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: include(functions.php): failed to open stream: No such file or directory in /in/8pR1C on line 2 Warning: include(): Failed opening 'functions.php' for inclusion (include_path='.:') in /in/8pR1C on line 2 Notice: Undefined index: type in /in/8pR1C on line 3
Output for hhvm-3.10.0 - 3.12.0
Warning: File not found: functions.php in /in/8pR1C on line 2 Notice: Undefined index: type in /in/8pR1C on line 3
Output for 5.2.3 - 5.4.45
Warning: include(functions.php): failed to open stream: No such file or directory in /in/8pR1C on line 2 Warning: include(): Failed opening 'functions.php' for inclusion (include_path='.:') in /in/8pR1C on line 2
Output for 5.1.0 - 5.2.2
<br /> <b>Warning</b>: include(functions.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in <b>/in/8pR1C</b> on line <b>2</b><br /> <br /> <b>Warning</b>: include() [<a href='function.include'>function.include</a>]: Failed opening 'functions.php' for inclusion (include_path='.:') in <b>/in/8pR1C</b> on line <b>2</b><br />
Output for 4.4.3 - 5.0.5
<br /> <b>Warning</b>: main(functions.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>/in/8pR1C</b> on line <b>2</b><br /> <br /> <b>Warning</b>: main() [<a href='function.include'>function.include</a>]: Failed opening 'functions.php' for inclusion (include_path='.:') in <b>/in/8pR1C</b> on line <b>2</b><br />
Output for 4.3.2 - 4.4.2
<br /> <b>Warning</b>: main(functions.php): failed to open stream: No such file or directory in <b>/in/8pR1C</b> on line <b>2</b><br /> <br /> <b>Warning</b>: main(): Failed opening 'functions.php' for inclusion (include_path='.:') in <b>/in/8pR1C</b> on line <b>2</b><br />
Output for 4.3.0 - 4.3.1
<br /> <b>Warning</b>: main(functions.php) [<a href='http://www.php.net/function.main'>function.main</a>]: failed to create stream: No such file or directory in <b>/in/8pR1C</b> on line <b>2</b><br /> <br /> <b>Warning</b>: main() [<a href='http://www.php.net/function.main'>function.main</a>]: Failed opening 'functions.php' for inclusion (include_path='.:') in <b>/in/8pR1C</b> on line <b>2</b><br />