Home >> Latest Articles >> Limitation of PHP

Limitation of PHP

Limitation of PHP | Drawbacks of PHP

There are basically two real limitations:

PHP is a fully synchronous language.
This has the impact on which things you can easily implement in PHP and which not.

For example: Implementing a Long Polling driven chat application isn't trivial, because PHP would need block one process per chatter. I'm not saying it's impossible, you can hack around this limitation using some PHP Daemon library. I'm just saying that this is one of the cases where other languages, like JavaScript, are more appropriate (NodeJS).

PHP is slow.
Please don't understand this an an offense. It's a fact that PHP - as implemented by Zend - is slow compared to other scripting languages. This typically is no problem when building websites, but you obviously can't do certain things: Implementing a ray tracer in PHP is definitely a bad idea - whereas in JavaScript you could do this.

But apart from that, I think that PHP is pretty good multi-purpose for small & average scale applications.

Full Stack Tutorials

Author | Blogger @FullStackTutorials | View all articles