3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo(getcwd()); $h = fopen('tmp.php', 'w+'); if ($h) echo("ok");
Output for 5.2.3 - 7.2.0
/ Warning: fopen(tmp.php): failed to open stream: Permission denied in /in/m1iBt on line 4
Output for 4.3.2 - 5.2.2
/in Warning: fopen(tmp.php): failed to open stream: Read-only file system in /in/m1iBt on line 4
Output for 4.3.0 - 4.3.1
/in Warning: fopen(tmp.php) [http://www.php.net/function.fopen]: failed to create stream: Read-only file system in /in/m1iBt on line 4