3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php mkdir('lol'); dir('lol'); file_put_contents('hello', 'coucou'); echo file_get_contents('hello');
Output for 5.2.3 - 5.6.28, 7.0.0 - 7.1.0
Warning: mkdir(): Permission denied in /in/GTEum on line 2 Warning: dir(lol): failed to open dir: No such file or directory in /in/GTEum on line 3 Warning: file_put_contents(hello): failed to open stream: Permission denied in /in/GTEum on line 4 Warning: file_get_contents(hello): failed to open stream: No such file or directory in /in/GTEum on line 5
Output for hhvm-3.10.0 - 3.12.0
Warning: mkdir(): Permission denied in /in/GTEum on line 2 Warning: No such file or directory in /in/GTEum on line 3 Warning: Permission denied in /in/GTEum on line 4 Warning: No such file or directory in /in/GTEum on line 5
Output for 5.0.0 - 5.2.2
Warning: mkdir(): Read-only file system in /in/GTEum on line 2 Warning: dir(lol): failed to open dir: No such file or directory in /in/GTEum on line 3 Warning: file_put_contents(hello): failed to open stream: Read-only file system in /in/GTEum on line 4 Warning: file_get_contents(hello): failed to open stream: No such file or directory in /in/GTEum on line 5
Output for 4.4.5 - 4.4.9
Warning: mkdir(lol): Read-only file system in /in/GTEum on line 2 Warning: dir(lol): failed to open dir: No such file or directory in /in/GTEum on line 3 Fatal error: Call to undefined function: file_put_contents() in /in/GTEum on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Warning: mkdir(lol): Read-only file system in /in/GTEum on line 2 Warning: dir(lol): failed to open dir: No such file or directory in /in/GTEum on line 3 Fatal error: Call to undefined function: file_put_contents() in /in/GTEum on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: mkdir(lol) [http://www.php.net/function.mkdir]: Read-only file system in /in/GTEum on line 2 Warning: dir(lol) [http://www.php.net/function.dir]: failed to open dir: No such file or directory in /in/GTEum on line 3 Fatal error: Call to undefined function: file_put_contents() in /in/GTEum on line 4