3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo CWD; echo include('index.php');
based on AaiGa
Output for 5.1.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Use of undefined constant CWD - assumed 'CWD' in /in/aqlY1 on line 2 CWD Warning: include(index.php): failed to open stream: No such file or directory in /in/aqlY1 on line 3 Warning: include(): Failed opening 'index.php' for inclusion (include_path='.:') in /in/aqlY1 on line 3
Output for hhvm-3.13.2
Notice: Use of undefined constant CWD - assumed 'CWD' in /in/aqlY1 on line 2 CWD Warning: include(index.php): File not found in /in/aqlY1 on line 3
Output for hhvm-3.10.0 - 3.12.0
Notice: Use of undefined constant CWD - assumed 'CWD' in /in/aqlY1 on line 2 CWD Warning: File not found: index.php in /in/aqlY1 on line 3
Output for 4.3.2 - 5.0.5
Notice: Use of undefined constant CWD - assumed 'CWD' in /in/aqlY1 on line 2 CWD Warning: main(index.php): failed to open stream: No such file or directory in /in/aqlY1 on line 3 Warning: main(): Failed opening 'index.php' for inclusion (include_path='.:') in /in/aqlY1 on line 3
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant CWD - assumed 'CWD' in /in/aqlY1 on line 2 CWD Warning: main(index.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/aqlY1 on line 3 Warning: main() [http://www.php.net/function.main]: Failed opening 'index.php' for inclusion (include_path='.:') in /in/aqlY1 on line 3