Jump to content

PHP 5 is compiled or intrepreted? & build


riddhi

Recommended Posts

THanks thorpe and PFMaBiSmAd for those helful information. But, PFMaBiSmAd could you please elaborate on it a bit more I mean when tokenized is it not compiled?? Is there any particular site which will provide me useful input in this regard.

Link to comment
Share on other sites

Yes it is (I suppose) compiled into opcode. However, once the script has finnished executing the bytecode is simply thrown away. The next request for the same script requires the entire process to be run again.

 

Of course there are opcode caches available for php, and Ive heard rumours that opcode cahing will be included natively in php6.

Link to comment
Share on other sites

Compiling generally refers to producing native machine language that is executed directly by the processor.

 

A parsed/tokenized/interpreted language produces an intermediate list of instructions (tokens) and program data that the language engine then reads, interprets, and calls the corresponding code routine to perform the action each token corresponds to. Here is a list of the php tokens - http://www.php.net/manual/en/tokens.php

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.