3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo 1; include 'basic.php'; echo 4; ?>
Output for 7.1.25 - 7.3.1
1 Warning: include(): open_basedir restriction in effect. File(basic.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/ijb3c on line 1 Warning: include(basic.php): failed to open stream: Operation not permitted in /in/ijb3c on line 1 Warning: include(): Failed opening 'basic.php' for inclusion (include_path='.:') in /in/ijb3c on line 1 4
Output for 5.1.0 - 7.1.10
1 Warning: include(basic.php): failed to open stream: No such file or directory in /in/ijb3c on line 1 Warning: include(): Failed opening 'basic.php' for inclusion (include_path='.:') in /in/ijb3c on line 1 4
Output for 4.3.2 - 5.0.5
1 Warning: main(basic.php): failed to open stream: No such file or directory in /in/ijb3c on line 1 Warning: main(): Failed opening 'basic.php' for inclusion (include_path='.:') in /in/ijb3c on line 1 4
Output for 4.3.0 - 4.3.1
1 Warning: main(basic.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/ijb3c on line 1 Warning: main() [http://www.php.net/function.main]: Failed opening 'basic.php' for inclusion (include_path='.:') in /in/ijb3c on line 1 4