Implementation and architecture

Main KPHP parts are the following:

  1. compiler — translates PHP sources to C++ sources
  2. runtime — implements PHP standard library and PHP types (strings, arrays, etc.)
  3. server — handles HTTP requests and performs master/worker orchestration
  4. vkext — exposes network layer and RPC/TL as a PHP extension for development

You can see all these parts as top-level folders of the KPHP repository.