Is the php compiler smart enough to not waste time including a large file since that code will never be reached? This is easiest to express through a simple example.
$asdf = true;
if ( $asdf )
echo "hi!"
else
{
include "lib/a_really_huge_file_with_lots_of_functions_and_code.php";
echo "hi again!";
}
yes!Page loaded in 1.00009512901 seconds
noo!Page loaded in 1.00189614296 seconds
So yes. It appears as if the PHP compiler is smart enough to ignore unused code, and that bad programming practices can significantly add to execution time.