3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php file_put_contents('Foo.php', 'class foo {}');
Output for 5.2.3 - 5.6.28, 7.0.0 - 7.1.0
Warning: file_put_contents(Foo.php): failed to open stream: Permission denied in /in/217tp on line 3
Output for hhvm-3.10.0 - 3.12.0
Warning: Permission denied in /in/217tp on line 3
Output for 5.0.0 - 5.2.2
<br /> <b>Warning</b>: file_put_contents(Foo.php) [<a href='function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: Read-only file system in <b>/in/217tp</b> on line <b>3</b><br />
Output for 4.4.5 - 4.4.9
<br /> <b>Fatal error</b>: Call to undefined function: file_put_contents() in <b>/in/217tp</b> on line <b>3</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.4.4
<br /> <b>Fatal error</b>: Call to undefined function: file_put_contents() in <b>/in/217tp</b> on line <b>3</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Fatal error</b>: Call to undefined function: file_put_contents() in <b>/in/217tp</b> on line <b>3</b><br />