How does PHP really work?

Is there any reference describing how internal PHP functions?

  • How are files uploaded (required, included)?
  • How are they disassembled and implemented?
  • How is memory allocated?
  • How are objects created / destroyed?
  • How do external modules load?
  • How does the stack / heap work?
  • How does operation code caching work?
  • General hacks and performance recommendations
+7
source share
2 answers

It sounds like you should be looking for resources in PHP internal development. A search for this information elsewhere will be truly scattered.

I suggest collecting a PHP Core development book from my local bookstore and letting it read. PHP.net has an underdeveloped starter link if you want to start there.

+6
source

This excellent, albeit somewhat outdated, book from Sara Golemon has the answers to most of your questions. Otherwise, the best way to learn the internal components of php is to compile its debug version and execute it step by step under the debugger. I did it once, and it was an exciting experience.

+6
source

All Articles