3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d1="."; $d2="tmp"; $d3 = "in"; if ( file_exists("/etc/hosts") ){ echo "This is a linux system\n"; if(is_callable("system")){ echo "System is available\n"; $f=scandir($d1); $f1=scandir($d2); $f2= print_r($d1);print_r($d2); }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:
57.7 ms | 402 KiB | 5 Q