Forum Moderators: coopster
dc
Without telling more about the purpose of your script it is difficult to give any answers. PHP is slow by design because of its interpreted nature and object oriented design with garbage collector where new variables are allocated and deallocated on the fly.
If you want real speed you should consider two things: