3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
Warning: Undefined variable $websiteURL in /in/VWnqf on line 18 Warning: Undefined variable $game in /in/VWnqf on line 18 Warning: Undefined variable $middleBG in /in/VWnqf on line 21 Warning: Undefined variable $websiteURL in /in/VWnqf on line 25 Warning: Undefined variable $game in /in/VWnqf on line 25 Warning: Undefined variable $error in /in/VWnqf on line 27 Warning: Undefined variable $websiteURL in /in/VWnqf on line 31 Warning: Undefined variable $game in /in/VWnqf on line 31 Warning: Undefined variable $websiteURL in /in/VWnqf on line 31 Warning: Undefined variable $game in /in/VWnqf on line 31 Warning: Undefined variable $websiteURL in /in/VWnqf on line 33 Warning: Undefined variable $game in /in/VWnqf on line 33 Warning: Undefined variable $game in /in/VWnqf on line 35 Warning: Undefined variable $websiteURL in /in/VWnqf on line 35 Warning: Undefined variable $game in /in/VWnqf on line 37
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Warning: Undefined variable $websiteURL in /in/VWnqf on line 18 Warning: Undefined variable $game in /in/VWnqf on line 18 Warning: Undefined variable $middleBG in /in/VWnqf on line 21 Warning: Undefined variable $websiteURL in /in/VWnqf on line 25 Warning: Undefined variable $game in /in/VWnqf on line 25 Warning: Undefined variable $error in /in/VWnqf on line 27 Warning: Undefined variable $websiteURL in /in/VWnqf on line 31 Warning: Undefined variable $game in /in/VWnqf on line 31 Warning: Undefined variable $websiteURL in /in/VWnqf on line 31 Warning: Undefined variable $game in /in/VWnqf on line 31 Warning: Undefined variable $websiteURL in /in/VWnqf on line 33 Warning: Undefined variable $game in /in/VWnqf on line 33 Warning: Undefined variable $game in /in/VWnqf on line 35 Warning: Undefined variable $websiteURL in /in/VWnqf on line 35 Warning: Undefined variable $game in /in/VWnqf on line 37
Output for 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
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
Output for 7.3.32 - 7.3.33

preferences:
229.41 ms | 401 KiB | 291 Q