3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php file_get_contents('/var/log/lastlog');
Output for 7.0.20, 7.1.5 - 7.1.10
Warning: file_get_contents(/var/log/lastlog): failed to open stream: Permission denied in /in/dkHc3 on line 1
Output for 5.2.3 - 7.0.14, 7.1.0
Warning: file_get_contents(/var/log/lastlog): failed to open stream: No such file or directory in /in/dkHc3 on line 1
Output for 4.4.3 - 5.2.2
<br /> <b>Warning</b>: file_get_contents(/var/log/lastlog) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in <b>/in/dkHc3</b> on line <b>1</b><br />
Output for 4.3.2 - 4.4.2
<br /> <b>Warning</b>: file_get_contents(/var/log/lastlog): failed to open stream: No such file or directory in <b>/in/dkHc3</b> on line <b>1</b><br />
Output for 4.3.0 - 4.3.1
<br /> <b>Warning</b>: file_get_contents(/var/log/lastlog) [<a href='http://www.php.net/function.file-get-contents'>function.file-get-contents</a>]: failed to create stream: No such file or directory in <b>/in/dkHc3</b> on line <b>1</b><br />