3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php show_source(__DIR__ . '/../index.php');
Output for 5.3.0 - 7.1.0
Warning: show_source(/in/../index.php): failed to open stream: No such file or directory in /in/eQG9k on line 2 Warning: show_source(): Failed opening '/in/../index.php' for highlighting in /in/eQG9k on line 2
Output for 4.3.2 - 5.2.17
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/eQG9k on line 2 Warning: show_source(__DIR__/../index.php): failed to open stream: No such file or directory in /in/eQG9k on line 2 Warning: show_source(): Failed opening '__DIR__/../index.php' for highlighting in /in/eQG9k on line 2
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/eQG9k on line 2 Warning: show_source(__DIR__/../index.php) [http://www.php.net/function.show-source]: failed to create stream: No such file or directory in /in/eQG9k on line 2 Warning: show_source() [http://www.php.net/function.show-source]: Failed opening '__DIR__/../index.php' for highlighting in /in/eQG9k on line 2