But as far as I understand, java kinda does the same thing, doesn't it? Java programs are being compiled into some intermediate language, and this is being interpreted at runtime. So using an accelerator should mimic the same setup for php.
Java is much less dynamic language than PHP (try doing $foo = $$bar in Java :) which allows it to generate more low-level and more efficient bytecode and also use JIT compiling to further improve its performance. PHP opcodes is more high-level and not JIT-ed (unless somebody writes JIT for PHP, which didn't happen yet :)
Do you know any resource, describing how php works (like the thing about compiling opcode, and stuff)? How does php handle simultaneous requests?
Try these: http://www.php.net/manual/en/internals.php http://blog.libssh2.org/index.php?/archives/24-Extending-and-Embedding-PHP.html
Are there multiple threads spawned?
Depends on server API. ISAPI does, fastCGi doesn't. -- Stanislav Malyshev, Zend Products Engineer [EMAIL PROTECTED] http://www.zend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php