3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input = "file.php\0.jpg"; echo file_get_contents($input); echo "\n"; ?>
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Warning: file_get_contents() expects parameter 1 to be a valid path, string given in /in/UMpgB on line 3
Output for 5.3.4 - 5.3.29
Output for 4.3.2 - 5.3.3
Warning: file_get_contents(file.php): failed to open stream: No such file or directory in /in/UMpgB on line 3
Output for 4.3.0 - 4.3.1
Warning: file_get_contents(file.php) [http://www.php.net/function.file-get-contents]: failed to create stream: No such file or directory in /in/UMpgB on line 3