3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = fopen("Beispiel.txt", "w+"); fwrite($x, "Moep"); fclose($x); echo filge_get_contents("Beispiel.txt");
Output for 7.0.0 - 7.1.0
Warning: fopen(Beispiel.txt): failed to open stream: Permission denied in /in/OvYs4 on line 2 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/OvYs4 on line 3 Warning: fclose() expects parameter 1 to be resource, boolean given in /in/OvYs4 on line 4 Fatal error: Uncaught Error: Call to undefined function filge_get_contents() in /in/OvYs4:5 Stack trace: #0 {main} thrown in /in/OvYs4 on line 5
Process exited with code 255.
Output for hhvm-3.12.0
Warning: Permission denied in /in/OvYs4 on line 2 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/OvYs4 on line 3 Warning: fclose() expects parameter 1 to be resource, boolean given in /in/OvYs4 on line 4 Fatal error: Call to undefined function filge_get_contents() in /in/OvYs4 on line 5
Process exited with code 255.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.0 - 5.6.28
Warning: fopen(Beispiel.txt): failed to open stream: Permission denied in /in/OvYs4 on line 2 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/OvYs4 on line 3 Warning: fclose() expects parameter 1 to be resource, boolean given in /in/OvYs4 on line 4 Fatal error: Call to undefined function filge_get_contents() in /in/OvYs4 on line 5
Process exited with code 255.
Output for 5.2.3 - 5.2.17
Warning: fopen(Beispiel.txt): failed to open stream: Permission denied in /in/OvYs4 on line 2 Warning: fwrite(): supplied argument is not a valid stream resource in /in/OvYs4 on line 3 Warning: fclose(): supplied argument is not a valid stream resource in /in/OvYs4 on line 4 Fatal error: Call to undefined function filge_get_contents() in /in/OvYs4 on line 5
Process exited with code 255.
Output for 5.0.0 - 5.2.2
Warning: fopen(Beispiel.txt): failed to open stream: Read-only file system in /in/OvYs4 on line 2 Warning: fwrite(): supplied argument is not a valid stream resource in /in/OvYs4 on line 3 Warning: fclose(): supplied argument is not a valid stream resource in /in/OvYs4 on line 4 Fatal error: Call to undefined function filge_get_contents() in /in/OvYs4 on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Warning: fopen(Beispiel.txt): failed to open stream: Read-only file system in /in/OvYs4 on line 2 Warning: fwrite(): supplied argument is not a valid stream resource in /in/OvYs4 on line 3 Warning: fclose(): supplied argument is not a valid stream resource in /in/OvYs4 on line 4 Fatal error: Call to undefined function: filge_get_contents() in /in/OvYs4 on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Warning: fopen(Beispiel.txt): failed to open stream: Read-only file system in /in/OvYs4 on line 2 Warning: fwrite(): supplied argument is not a valid stream resource in /in/OvYs4 on line 3 Warning: fclose(): supplied argument is not a valid stream resource in /in/OvYs4 on line 4 Fatal error: Call to undefined function: filge_get_contents() in /in/OvYs4 on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: fopen(Beispiel.txt) [http://www.php.net/function.fopen]: failed to create stream: Read-only file system in /in/OvYs4 on line 2 Warning: fwrite(): supplied argument is not a valid stream resource in /in/OvYs4 on line 3 Warning: fclose(): supplied argument is not a valid stream resource in /in/OvYs4 on line 4 Fatal error: Call to undefined function: filge_get_contents() in /in/OvYs4 on line 5