Which does php parse more quickly:
//////////
or:
In other words, is it extremely marginal the speed it takes to parse a // comment, as compared to the time it takes to pass through an empty line?
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.
The comments will be parsed into individual nodes in the parse tree, but the adjacent whitespace of newlines will result in just one node in the parse tree.
So the technical answer is the whitespace will parse faster, but it is marginal and completely negligible in just about any PHP script. Use an op cache, which will toss out the comments and whitespace, if compile times actually matter to you.