3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler (function($errno, $errstr, $errfile, $errline){ if(preg_match('~.*require_once\((.*?)\)\: failed~', $errstr, $matches)){ $file = $matches[1]; if(is_readable($file)){ echo 'caught require... error, file ' .$file . ' is readable o.O' ; }else{ echo 'caught require... error, file ' .$file . ' is NOT readable' ; //and here you can do some more test, like 'is xyz mounted' etc. } } }); require_once('adf');
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
Fatal error: Uncaught Error: Failed opening required 'adf' (include_path='.:') in /in/EDlat:17 Stack trace: #0 {main} thrown in /in/EDlat on line 17
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 Fatal error: Uncaught Error: Failed opening required 'adf' (include_path='.:') in /in/EDlat:17 Stack trace: #0 {main} thrown in /in/EDlat on line 17
Process exited with code 255.
Output for 7.3.32 - 7.3.33, 7.4.33
caught require... error, file adf is NOT readable Fatal error: require_once(): Failed opening required 'adf' (include_path='.:') in /in/EDlat on line 17
Process exited with code 255.
Output for 7.1.0 - 7.1.19, 7.1.26 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.32
Warning: is_readable(): open_basedir restriction in effect. File(adf) is not within the allowed path(s): (/tmp:/in:/etc) in /in/EDlat on line 7 caught require... error, file adf is NOT readable Fatal error: require_once(): Failed opening required 'adf' (include_path='.:') in /in/EDlat on line 17
Process exited with code 255.
Output for 7.1.20
Warning: is_readable(): open_basedir restriction in effect. File(adf) is not within the allowed path(s): (/tmp:/in) in /in/EDlat on line 7 caught require... error, file adf is NOT readable Fatal error: require_once(): Failed opening required 'adf' (include_path='.:') in /in/EDlat on line 17
Process exited with code 255.

preferences:
163.71 ms | 401 KiB | 196 Q