tags:

views:

31

answers:

1

Hello I have a telephone area code to Time zone array of several hundred elements. Is this array built at run time or at compile time. John

A: 

there is no "compile time" in php. Or better put, there's no interval between compile and run time in php. A script gets compiled and then executed immediately.

Array of several hundred elements is normally not a problem, but post an example what it looks like, perhaps there's a better way (e.g. database).

stereofrog
If you use APC, you can skip the recompilation step -- the compiled bytecode is cached in memory.
Frank Farmer