3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php foreach (require('xyz') as $foobar) { }
Output for 7.3.0rc3 - 7.3.0rc4
Warning: require(): open_basedir restriction in effect. File(xyz) is not within the allowed path(s): (/tmp:/in:/etc) in /in/CbWGp on line 3 Warning: require(xyz): failed to open stream: Operation not permitted in /in/CbWGp on line 3 Fatal error: require(): Failed opening required 'xyz' (include_path='.:') in /in/CbWGp on line 3
Process exited with code 255.
Output for 5.1.0 - 7.2.0
Warning: require(xyz): failed to open stream: No such file or directory in /in/CbWGp on line 3 Fatal error: require(): Failed opening required 'xyz' (include_path='.:') in /in/CbWGp on line 3
Process exited with code 255.
Output for 4.3.2 - 5.0.5
Warning: main(xyz): failed to open stream: No such file or directory in /in/CbWGp on line 3 Fatal error: main(): Failed opening required 'xyz' (include_path='.:') in /in/CbWGp on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: main(xyz) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/CbWGp on line 3 Fatal error: main() [http://www.php.net/function.main]: Failed opening required 'xyz' (include_path='.:') in /in/CbWGp on line 3