3v4l.org

run code in 300+ PHP versions simultaneously
<?php file_put_contents("/tmp/foo","bar"); $bar = file_get_contents("/etc/passwd"); echo $bar."<-------------"; function syscall($command){ $result = ""; if ($proc = popen("($command)2>&1","r")){ while (!feof($proc)) $result .= fgets($proc, 1000); pclose($proc); return $result; } } ?>

preferences:
39.36 ms | 402 KiB | 5 Q