Jump to content

PHP 5 is compiled or intrepreted? & build


riddhi

Recommended Posts

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.

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.