3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php (require('no-such-file')) && foundit(); function foundit() { echo 'found it'; }
Output for 7.1.25 - 7.3.1
Warning: require(): open_basedir restriction in effect. File(no-such-file) is not within the allowed path(s): (/tmp:/in:/etc) in /in/de58n on line 3 Warning: require(no-such-file): failed to open stream: Operation not permitted in /in/de58n on line 3 Fatal error: require(): Failed opening required 'no-such-file' (include_path='.:') in /in/de58n on line 3
Process exited with code 255.
Output for 5.6.30, 7.0.30 - 7.1.20
Warning: require(): open_basedir restriction in effect. File(no-such-file) is not within the allowed path(s): (/tmp:/in) in /in/de58n on line 3 Warning: require(no-such-file): failed to open stream: Operation not permitted in /in/de58n on line 3 Fatal error: require(): Failed opening required 'no-such-file' (include_path='.:') in /in/de58n on line 3
Process exited with code 255.
Output for hhvm-3.22.0
Fatal error: Uncaught Error: require(no-such-file): File not found in /in/de58n:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.18.5 - 3.21.3
Fatal error: Uncaught Error: require(no-such-file): File not found in /in/de58n:3 Stack trace: #0 {main}
Process exited with code 255.