title: How does PHP works and what is its architecture ?
body: <p>Guys recently I decided to go back to PHP and do some more complex stuff than a simple log in page. For 3 years I've been programming with Java/JavaEE and have a good understanding of the architecture of of Java Applications. Basically, a virtual machine ( a simple OS process ) that runs compiled code called byte code. a simple Java web server is basically a java application that listens on provided TCP port for Http requests and responds accordingly of course it is more complicated than that but this is its initial work. </p>
  
  <p>Now, what about PHP ? How does it work ? What, in a nutshell, is its architecture. </p>
  
  <p>I googled about this question but in 90% the articles explain how to implement and construct a web application with PHP which is not what I am looking for. </p>