3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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.3.0 - 7.1.0
Notice: Undefined index: type in /in/9URfW on line 2
Output for 4.3.0 - 5.2.17
Notice: Undefined index: type in /in/9URfW on line 2