3v4l.org

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