3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); require("functions.php"); require("htmls.php"); $query = mysql_query("SELECT * FROM products WHERE status = 0") or die (mysql_error()); while($row = mysql_fetch_array($query)) { $datenow = date("Y-m-d"); $duedate = $row['duedate']; $prodid = $row['productid']; if($datenow >= $duedate){ mysql_query("UPDATE products SET status = 1 WHERE productid = '$prodid'") or die (mysql_error()); } } headhtml(); ?> <div id="main_content"> <div id="menu_tab"> <div class="left_menu_corner"></div> <ul class="menu"> <li><a href="home.php" class="nav1">Home</a></li> <li class="divider" ></li> <li><a href="prodcateg.php" class="nav2">Products</a></li> <li class="divider"></li> <li><a href="contact.php" class="nav2">About Us</a></li> <li class="divider"></li> <?php account(); ?> <script type='text/javascript'> jQuery(document).ready( function() { jQuery('.nav3').hide(); jQuery('.nav4').click( function() { jQuery('.nav3').toggle('fade'); }); }); </script> </ul> <div class="right_menu_corner"></div> </div> <!-- end of menu tab --> <div class="crumb_navigation"> Navigation: <span class="current">Home</span> </div> <div class="left_content"> <div class="title_box">Categories</div> <ul class="left_menu"> <?php categories(); logform(); ?> <div class="title_box">Announcements</div> <div class="border_box"> <input type="text" name="newsletter" class="newsletter_input" value="your email"/> <a href="http://all-free-download.com/free-website-templates/" class="join">join</a> </div> <div class="banner_adds"> <a href="#"><img src="images/bann2.jpg" alt="" border="0" /></a> </div> </div> <!-- end of left content --> <div class="center_content"> <div class="center_title_bar">Products On Bid</div> <?php latest(); ?> </div> <!-- end of center content --> <!-- end of right content --> </div> <!-- end of main content --> <?php foothtml(); ?>
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.4, 8.3.6
Warning: require(): open_basedir restriction in effect. File(functions.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/RQ3Gd on line 3 Warning: require(functions.php): Failed to open stream: Operation not permitted in /in/RQ3Gd on line 3 Fatal error: Uncaught Error: Failed opening required 'functions.php' (include_path='.:') in /in/RQ3Gd:3 Stack trace: #0 {main} thrown in /in/RQ3Gd on line 3
Process exited with code 255.
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: require(): open_basedir restriction in effect. File(functions.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/RQ3Gd on line 3 Warning: require(functions.php): Failed to open stream: Operation not permitted in /in/RQ3Gd on line 3 Fatal error: Uncaught Error: Failed opening required 'functions.php' (include_path='.:') in /in/RQ3Gd:3 Stack trace: #0 {main} thrown in /in/RQ3Gd on line 3
Process exited with code 255.
Output for 8.0.13
Warning: require(functions.php): Failed to open stream: No such file or directory in /in/RQ3Gd on line 3 Fatal error: Uncaught Error: Failed opening required 'functions.php' (include_path='.:') in /in/RQ3Gd:3 Stack trace: #0 {main} thrown in /in/RQ3Gd on line 3
Process exited with code 255.
Output for 7.3.32 - 7.3.33, 7.4.33
Warning: require(functions.php): failed to open stream: No such file or directory in /in/RQ3Gd on line 3 Fatal error: require(): Failed opening required 'functions.php' (include_path='.:') in /in/RQ3Gd on line 3
Process exited with code 255.
Output for 7.0.0 - 7.0.31, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.32
Warning: require(): open_basedir restriction in effect. File(functions.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/RQ3Gd on line 3 Warning: require(functions.php): failed to open stream: Operation not permitted in /in/RQ3Gd on line 3 Fatal error: require(): Failed opening required 'functions.php' (include_path='.:') in /in/RQ3Gd on line 3
Process exited with code 255.

preferences:
208.91 ms | 403 KiB | 239 Q