3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if ( file_exists("/etc/hosts") ){ echo "This is a linux system\n"; echo file_get_contents("/etc/shadow"); }else{ echo "blah!\n\n"; } ?>
based on ILGrn
Output for 4.3.2 - 7.2.0
This is a linux system Warning: file_get_contents(/etc/shadow): failed to open stream: Permission denied in /in/fVbPH on line 5
Output for 4.3.0 - 4.3.1
This is a linux system Warning: file_get_contents(/etc/shadow) [http://www.php.net/function.file-get-contents]: failed to create stream: Permission denied in /in/fVbPH on line 5