3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo file_get_contents("file:///etc/passwd\0");
Output for 5.4.0 - 7.1.0
Warning: file_get_contents() expects parameter 1 to be a valid path, string given in /in/Lop4i on line 2
Output for 5.3.4 - 5.3.29
Output for 5.0.0 - 5.3.3
root:x:0:0:root:/root:/bin/sh nobody:x:99:99:nobody:/:/bin/false
Output for 4.3.2 - 4.4.9
Notice: file_get_contents(): Unable to find the wrapper "file" - did you forget to enable it when you configured PHP? in /in/Lop4i on line 2 Warning: file_get_contents(file:///etc/passwd): failed to open stream: No such file or directory in /in/Lop4i on line 2
Output for 4.3.0 - 4.3.1
Notice: file_get_contents() [http://www.php.net/function.file-get-contents]: Unable to find the wrapper "file" - did you forget to enable it when you configured PHP? in /in/Lop4i on line 2 Warning: file_get_contents(file:///etc/passwd) [http://www.php.net/function.file-get-contents]: failed to create stream: No such file or directory in /in/Lop4i on line 2