3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php dir(_FILENAME_);
Output for 5.5.0 - 5.6.28, 7.0.0 - 7.1.0
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 hhvm-3.10.0 - 3.12.0
Notice: Use of undefined constant _FILENAME_ - assumed '_FILENAME_' in /in/hBgEC on line 3 Warning: 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 />