3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(file_get_contents("file:///etc/passwd\0"));
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/BtjFT on line 2 NULL
Output for 5.3.4 - 5.3.29
bool(false)
Output for 5.0.0 - 5.3.3
string(65) "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/BtjFT on line 2 Warning: file_get_contents(file:///etc/passwd): failed to open stream: No such file or directory in /in/BtjFT on line 2 bool(false)
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/BtjFT 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/BtjFT on line 2 bool(false)