3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $hungerArray = array( "<font color=red><b>Dead</b></font>", "<font color=red><b>Extremely Starving</b></font>", "<font color=red><b>Very Starving</b></font>", "<font color=red><b>Starving</b></font>", "<font color=blue><b>Realllly Hungry</b></font>", "<font color=blue><b>Pretty Hungry</b></font>", "<font color=blue><b>Hungry</b></font>", "<font color=green><b>Not Hungry</b></font>", "<font color=green><b>Stuffed</b></font>", "<font color=red><b>Bloated</b></font>", "<font color=red><b>Fat</b></font>"); $defaultPointsVariable = "KP"; $noPetsLine = "<p><b>Notice: You Have Not Adopted A Pet!</b><br>You can go <a href=$websiteURL/getpet.php?game=$game>here</a> to Adopt A Pet Today!</p>"; $systemMessageStart = "<br><CENTER><TABLE BGCOLOR=\"#000000\" CELLSPACING=1 CELLPADDING=0 WIDTH=450 HEIGHT=45> <TR BGCOLOR=\"#FFFFFF\"> <TD BGCOLOR=\"$middleBG\"><p align=center><FONT SIZE=\"-1\">"; $systemMessageEnd = "</FONT></p> </TD> </TR> </TABLE></CENTER>"; $updateTemplate = "<b>News Update</b> (<a href=$websiteURL/updates.pro.php?game=$game>OK</a>)"; $errorTemplate = "<p align=center><b>$error</b></p>"; $secondsToKeepUsersOn = 300; // Change this to the number of seconds to keep users on the who's on list from their last visit $policeModLine = "<p align=center><a href=# onClick=\"window.open('$websiteURL/admin/admin_remote.php?game=$game','remote','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=200,height=60')\">Mute User</a> | <a href=$websiteURL/warn_user.php?game=$game>Warn User</a>"; $adminLine = " | <a href=$websiteURL/admin/admin.php?game=$game>Admin Section</a>"; $bottomLIne = "<p align=center><a href=tos.php?game=$game>Rules</a> | <a href=$websiteURL>Pet Game!</a>"; $noPremium = " | <a href=upgrade.php?game=$game>Upgrade to Premium Now!</a>"; $noAccessError = "You do not have access to this page. Please login first.";
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
Notice: Undefined variable: websiteURL in /in/VWnqf on line 18 Notice: Undefined variable: game in /in/VWnqf on line 18 Notice: Undefined variable: middleBG in /in/VWnqf on line 21 Notice: Undefined variable: websiteURL in /in/VWnqf on line 25 Notice: Undefined variable: game in /in/VWnqf on line 25 Notice: Undefined variable: error in /in/VWnqf on line 27 Notice: Undefined variable: websiteURL in /in/VWnqf on line 31 Notice: Undefined variable: game in /in/VWnqf on line 31 Notice: Undefined variable: websiteURL in /in/VWnqf on line 31 Notice: Undefined variable: game in /in/VWnqf on line 31 Notice: Undefined variable: websiteURL in /in/VWnqf on line 33 Notice: Undefined variable: game in /in/VWnqf on line 33 Notice: Undefined variable: game in /in/VWnqf on line 35 Notice: Undefined variable: websiteURL in /in/VWnqf on line 35 Notice: Undefined variable: game in /in/VWnqf on line 37