3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo "file". __FILE__ ; echo "dir" . __DIR__ ; ?>
based on m1WLP
Output for 5.3.0 - 7.1.0
file/in/V2Ha7dir/in
Output for 4.3.0 - 5.2.17
file/in/V2Ha7 Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/V2Ha7 on line 5 dir__DIR__