3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php dir(_FILENAME_);
Output for 7.2.6
Warning: Use of undefined constant _FILENAME_ - assumed '_FILENAME_' (this will throw an Error in a future version of PHP) in /in/hBgEC on line 3 Warning: dir(): open_basedir restriction in effect. File(_FILENAME_) is not within the allowed path(s): (/tmp:/in) in /in/hBgEC on line 3 Warning: dir(_FILENAME_): failed to open dir: Operation not permitted in /in/hBgEC on line 3
Output for 7.2.0
Warning: Use of undefined constant _FILENAME_ - assumed '_FILENAME_' (this will throw an Error in a future version of PHP) in /in/hBgEC on line 3 Warning: dir(_FILENAME_): failed to open dir: No such file or directory in /in/hBgEC on line 3
Output for 7.1.20
Notice: Use of undefined constant _FILENAME_ - assumed '_FILENAME_' in /in/hBgEC on line 3 Warning: dir(): open_basedir restriction in effect. File(_FILENAME_) is not within the allowed path(s): (/tmp:/in) in /in/hBgEC on line 3 Warning: dir(_FILENAME_): failed to open dir: Operation not permitted in /in/hBgEC on line 3
Output for 5.5.0 - 7.1.10
Notice: Use of undefined constant _FILENAME_ - assumed '_FILENAME_' in /in/hBgEC on line 3 Warning: dir(_FILENAME_): failed to open dir: No such file or directory in /in/hBgEC on line 3
Output for 5.2.3 - 5.4.45
Warning: dir(_FILENAME_): failed to open dir: No such file or directory in /in/hBgEC on line 3
Output for 4.4.3 - 5.2.2
<br /> <b>Warning</b>: dir(_FILENAME_) [<a href='function.dir'>function.dir</a>]: failed to open dir: No such file or directory in <b>/in/hBgEC</b> on line <b>3</b><br />
Output for 4.3.2 - 4.4.2
<br /> <b>Warning</b>: dir(_FILENAME_): failed to open dir: No such file or directory in <b>/in/hBgEC</b> on line <b>3</b><br />
Output for 4.3.0 - 4.3.1
<br /> <b>Warning</b>: dir(_FILENAME_) [<a href='http://www.php.net/function.dir'>function.dir</a>]: failed to open dir: No such file or directory in <b>/in/hBgEC</b> on line <b>3</b><br />