--TEST-- strip comments and whitespace with -w --SKIPIF-- --FILE-- '; file_put_contents($filename, $code); var_dump(shell_exec(<<" | $php -n -w SHELL)); @unlink($filename); echo "Done\n"; ?> --EXPECTF-- string(%d) "X-Powered-By: PHP/%s Content-type: text/html%r; charset=.*|%r " string(%d) "Status: 404 Not Found X-Powered-By: PHP/%s Content-type: text/html%r; charset=.*|%r No input file specified. " string(%d) "X-Powered-By: PHP/%s Content-type: text/html%r; charset=.*|%r " Done