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("/bin/ls"); }else{ echo "blah!\n\n"; } ?>
based on fVbPH
Output for 4.3.2 - 7.2.0
This is a linux system Warning: file_get_contents(/bin/ls): failed to open stream: No such file or directory in /in/PCm2t on line 5
Output for 4.3.0 - 4.3.1
This is a linux system Warning: file_get_contents(/bin/ls) [http://www.php.net/function.file-get-contents]: failed to create stream: No such file or directory in /in/PCm2t on line 5