3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<html> <body> <?php $file=fopen("a.txt","r") or exit("Unable to open file!"); ?> </body> </html> --------------------------------------------------------------------------------
Output for 4.3.2 - 7.1.0
<html> <body> Warning: fopen(a.txt): failed to open stream: No such file or directory in /in/JMKtj on line 5 Unable to open file!
Output for 4.3.0 - 4.3.1
<html> <body> Warning: fopen(a.txt) [http://www.php.net/function.fopen]: failed to create stream: No such file or directory in /in/JMKtj on line 5 Unable to open file!