if I have code like that
if($abc==true) {
//code code code
} else {
// other code, other code
}
So if $abc is true will the “other code” be compiled?
So is this irrelevant if there is a lot of “code” performance wise?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
PHP is a parsed (and therefore “compiled”) at runtime. All of the code is processed, regardless of reachability. For instance:
Will fail with a Parse Error rather than printing “Hello, World!”, even though the derp can’t ever be reached.