3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo file_get_contents($_SERVER['DOCUMENT_ROOT']."/index.php");
based on vqros
Output for 5.2.3 - 5.6.28, 7.0.0 - 7.1.0
Warning: file_get_contents(/index.php): failed to open stream: No such file or directory in /in/O5vEI on line 2
Output for hhvm-3.12.0
Warning: No such file or directory in /in/O5vEI on line 2
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.2 - 5.2.2
Notice: Undefined index: DOCUMENT_ROOT in /in/O5vEI on line 2 Warning: file_get_contents(/index.php): failed to open stream: No such file or directory in /in/O5vEI on line 2
Output for 4.3.0 - 4.3.1
Notice: Undefined index: DOCUMENT_ROOT in /in/O5vEI on line 2 Warning: file_get_contents(/index.php) [http://www.php.net/function.file-get-contents]: failed to create stream: No such file or directory in /in/O5vEI on line 2