Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7889139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:01:10+00:00 2026-06-03T06:01:10+00:00

Read Carefully The question here is not that does PHP parser processes comments or

  • 0

Read Carefully

The question here is not that does PHP parser processes comments or not nor the question is about, that does omitting comments give more performance to your script or not!

Its about, that ” Does PHP parser spend a microtime while reading comments? “

Why I am asking?

Due to the misconception over Internet World regarding this question. Some programmers says ‘YES’ and some answers ‘NO’. Who should I obay ?

Edit: (After getting mostly comments and answer claiming to spend microtime on comments)

Look What I’ve got here

<?php

// Control
echo microtime(), "<br />"; // 0.25163600 1292450508
echo microtime(), "<br />"; // 0.25186000 1292450508

// Test
echo microtime(), "<br />"; // 0.25189700 1292450508
# TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST
# .. Above comment repeated 18809 times ..
echo microtime(), "<br />"; // 0.25192100 1292450508

?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T06:01:11+00:00Added an answer on June 3, 2026 at 6:01 am

    Even if it takes some microseconds (yes it will, your file has to be parsed, right?!), you shouldn’t remove them. First thing to do is to cache the byte code, so the PHP interpreter doesn’t have to reparse the “plain text” code to byte code. I think you can get a lot more performance gain out of that, rather than worrying about comments taking up parse time.

    It seems to be indeed a duplicate to this post. (Note to self, first refresh the page before submitting.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

please read carefully because my english is not good, and the question has not
Note, this question is a bit subtle so read it carefully: I'm not just
Read this question carefully because I am not asking how to get rid of
Rewrote the question completely. Please, read it carefully Single note to not confuse you:
Before jumping on me, please read my question carefully :D. I know there are
Read about Server push here . I want to push data to client from
Read about the issue in this stackoverflow question . Still have the same issue
All the guys probably will recommend that I read the follow previously question in
Before I start the question, I know that some of you won't read the
Introduction first, question at the end. Please read carefully! I have a master-detail relation

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.