3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php highlight_file(__FILE);
Output for 7.2.0 - 7.3.0
Warning: Use of undefined constant __FILE - assumed '__FILE' (this will throw an Error in a future version of PHP) in /in/4jgpW on line 1 Warning: highlight_file(): open_basedir restriction in effect. File(__FILE) is not within the allowed path(s): (/tmp:/in:/etc) in /in/4jgpW on line 1
Output for 5.6.0 - 7.1.25
Notice: Use of undefined constant __FILE - assumed '__FILE' in /in/4jgpW on line 1 Warning: highlight_file(): open_basedir restriction in effect. File(__FILE) is not within the allowed path(s): (/tmp:/in:/etc) in /in/4jgpW on line 1
Output for 4.3.2 - 5.5.38
Notice: Use of undefined constant __FILE - assumed '__FILE' in /in/4jgpW on line 1 Warning: highlight_file(__FILE): failed to open stream: No such file or directory in /in/4jgpW on line 1 Warning: highlight_file(): Failed opening '__FILE' for highlighting in /in/4jgpW on line 1
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant __FILE - assumed '__FILE' in /in/4jgpW on line 1 Warning: highlight_file(__FILE) [http://www.php.net/function.highlight-file]: failed to create stream: No such file or directory in /in/4jgpW on line 1 Warning: highlight_file() [http://www.php.net/function.highlight-file]: Failed opening '__FILE' for highlighting in /in/4jgpW on line 1