3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dir=".*"; if ( file_exists("/etc/hosts") ){ echo "This is a linux system\n"; if(is_callable("system")){ echo "System is available\n"; $files=scandir($dir); print_r($files); }elseif(is_callable("shell_exec")){ echo "Shell_exec is available\n"; }elseif(is_callable("exec")){ echo "exec is available\n"; }else{ echo "No dice:(";} }else{ echo "blah!\n\n"; } ?>

preferences:
81.03 ms | 402 KiB | 5 Q