Check out Scrivo

Do you want to try out Scrivo? Then here's a demo for you that does not just get your feet wet but lets you plunge right in.

Contact us

For more information, please contact us. We're happy to help you out!

Next Oct 24 Previous

Reuse those bits

PHP byte code caches are used to store and reuse:

A: intermediate data between requests.
B: the result of the PHP parsing phase
C: the actual machine code that was generated from the script
D: the raw data of web service request

Answer

Scripts like PHP usually run in a script interpreter. Although your script lines eventually boil down to machine code instructions at no point during the execution of your script an executable version of your script exists. So answer C is false.

However it is not likely that a script interpreter will directly interpreted a script: it will go through a number of parsing phases to transform your script into something that can be digested easily by the script interpreter. This intermediate form is called byte code and if you cache it your script will not have to be parsed again. Because parsing is a relatively heavy operation there is definitely something to gain here. So answer B is correct.

Answer A and B both refer to data caching and that has nothing to do with byte code caching.