Why is PHP so much slower than Java?
I think the main reason of slowness might be PHP language is dynamic typing. A dynamically typed language is always going to be slower than a statically typed language, because variable types are checked at run-time instead of compile-time. As a result, statically typed languages like Java is going to be significantly faster at run-time, though they typically have to be compiled ahead of time. A JIT compiler makes this less of an issue for dynamically typed languages, but in PHP we don’t have a reliable (built in) one.
PS. Moreover, these forums are specific to Aspose APIs and your query looks out of context. Please google respective forums or threads for your requirements.
Ok thank you for the reply.