3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $f = fopen('test', 'w+'); echo (string)$f;
Output for 5.2.3 - 5.6.28, 7.0.0 - 7.1.0
Warning: fopen(test): failed to open stream: Permission denied in /in/MdA4i on line 3
Output for hhvm-3.10.0 - 3.12.0
Warning: Permission denied in /in/MdA4i on line 3
Output for 4.3.2 - 5.2.2
Warning: fopen(test): failed to open stream: Read-only file system in /in/MdA4i on line 3
Output for 4.3.0 - 4.3.1
Warning: fopen(test) [http://www.php.net/function.fopen]: failed to create stream: Read-only file system in /in/MdA4i on line 3