3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo PWD; echo readfile('../index.php');
based on NhS6B
Output for 4.3.2 - 7.1.7
Notice: Use of undefined constant PWD - assumed 'PWD' in /in/4BhhI on line 2 PWD Warning: readfile(../index.php): failed to open stream: No such file or directory in /in/4BhhI on line 3
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant PWD - assumed 'PWD' in /in/4BhhI on line 2 PWD Warning: readfile(../index.php) [http://www.php.net/function.readfile]: failed to create stream: No such file or directory in /in/4BhhI on line 3