3v4l.org

run code in 300+ PHP versions simultaneously
<?php include_once("content.php"); $_SESSION['lang'] = 'nl'; if(isset($_GET['done']) && isset($_GET['ord'])) { include_once("funadmin/class/class.db.php"); global $db_object; $db_object = new dbClassi(); $sql = "UPDATE orders SET status=1 WHERE id=".$_GET['ord']; $db_object->query($sql); } ?>
Output for 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Warning: include_once(): open_basedir restriction in effect. File(content.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/LmatA on line 2 Warning: include_once(content.php): Failed to open stream: Operation not permitted in /in/LmatA on line 2 Warning: include_once(): Failed opening 'content.php' for inclusion (include_path='.:') in /in/LmatA on line 2
Output for 8.0.13
Warning: include_once(content.php): Failed to open stream: No such file or directory in /in/LmatA on line 2 Warning: include_once(): Failed opening 'content.php' for inclusion (include_path='.:') in /in/LmatA on line 2
Output for 7.0.0 - 7.0.24, 7.1.0 - 7.1.10, 7.3.32 - 7.3.33, 7.4.33
Warning: include_once(content.php): failed to open stream: No such file or directory in /in/LmatA on line 2 Warning: include_once(): Failed opening 'content.php' for inclusion (include_path='.:') in /in/LmatA on line 2
Output for 7.1.26 - 7.1.33, 7.2.17 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.32
Warning: include_once(): open_basedir restriction in effect. File(content.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/LmatA on line 2 Warning: include_once(content.php): failed to open stream: Operation not permitted in /in/LmatA on line 2 Warning: include_once(): Failed opening 'content.php' for inclusion (include_path='.:') in /in/LmatA on line 2
Output for 7.1.20, 7.2.6
Warning: include_once(): open_basedir restriction in effect. File(content.php) is not within the allowed path(s): (/tmp:/in) in /in/LmatA on line 2 Warning: include_once(content.php): failed to open stream: Operation not permitted in /in/LmatA on line 2 Warning: include_once(): Failed opening 'content.php' for inclusion (include_path='.:') in /in/LmatA on line 2

preferences:
187.76 ms | 402 KiB | 204 Q