3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php dir(__FILENAME__);
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/hTC1r on line 3 Warning: dir(__FILENAME__): failed to open dir: No such file or directory in /in/hTC1r on line 3
Output for 5.5.0 - 7.1.10
Notice: Use of undefined constant __FILENAME__ - assumed '__FILENAME__' in /in/hTC1r on line 3 Warning: dir(__FILENAME__): failed to open dir: No such file or directory in /in/hTC1r 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/hTC1r 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/hTC1r</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/hTC1r</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/hTC1r</b> on line <b>3</b><br />