3v4l.org

run code in 300+ PHP versions simultaneously
<?php function adminer_object() { class AdminerSoftware extends Adminer { function name() { // custom name in title and heading return 'Software'; } function permanentLogin() { // key used for permanent login return "f8ee948505701abca3021525592e55b5"; } function credentials() { // server, username and password for connecting to database return array('localhost', 'ODBC', ''); } function database() { // database name, will be escaped by Adminer return 'software'; } function login($login, $password) { // validate user submitted credentials return ($login == 'admin' && $password == ''); } function tableName($tableStatus) { // tables without comments would return empty string and will be ignored by Adminer return h($tableStatus["Comment"]); } function fieldName($field, $order = 0) { // only columns with comments will be displayed and only the first five in select return ($order <= 5 && !preg_match('~_(md5|sha1)$~', $field["field"]) ? h($field["comment"]) : ""); } } return new AdminerSoftware; } include "./editor.php";
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: include(): open_basedir restriction in effect. File(./editor.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/WViv0 on line 46 Warning: include(./editor.php): Failed to open stream: Operation not permitted in /in/WViv0 on line 46 Warning: include(): Failed opening './editor.php' for inclusion (include_path='.:') in /in/WViv0 on line 46
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: include(): open_basedir restriction in effect. File(./editor.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/WViv0 on line 46 Warning: include(./editor.php): Failed to open stream: Operation not permitted in /in/WViv0 on line 46 Warning: include(): Failed opening './editor.php' for inclusion (include_path='.:') in /in/WViv0 on line 46
Output for 8.0.13
Warning: include(./editor.php): Failed to open stream: No such file or directory in /in/WViv0 on line 46 Warning: include(): Failed opening './editor.php' for inclusion (include_path='.:') in /in/WViv0 on line 46
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.3.32 - 7.3.33, 7.4.33
Warning: include(./editor.php): failed to open stream: No such file or directory in /in/WViv0 on line 46 Warning: include(): Failed opening './editor.php' for inclusion (include_path='.:') in /in/WViv0 on line 46
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(): open_basedir restriction in effect. File(./editor.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/WViv0 on line 46 Warning: include(./editor.php): failed to open stream: Operation not permitted in /in/WViv0 on line 46 Warning: include(): Failed opening './editor.php' for inclusion (include_path='.:') in /in/WViv0 on line 46
Output for 7.1.20, 7.2.6
Warning: include(): open_basedir restriction in effect. File(./editor.php) is not within the allowed path(s): (/tmp:/in) in /in/WViv0 on line 46 Warning: include(./editor.php): failed to open stream: Operation not permitted in /in/WViv0 on line 46 Warning: include(): Failed opening './editor.php' for inclusion (include_path='.:') in /in/WViv0 on line 46

preferences:
155.17 ms | 402 KiB | 202 Q