A PHP from the Future

Share this article

As developers, we find ourselves living in exciting times. With increasing attention paid to online activities, we’re working with larger data sets (even “big data”); scalability and connectivity are more important than ever before; the very nature of privacy is being re-examined. But quietly, in the shadow of all of this, sits perhaps a more pragmatic question. How will PHP change and grow to enable us to build the future, whatever it may hold?

I Predict

Will the inconsistent string function signatures ever be normalize? I doubt it. Will PHP ever be multi-threaded? Probably not, but maybe we’ll see Promises or Lua-style coroutines. If a police box suddenly appeared and an eccentric man popped his head out and said, “Behold, I bring you a PHP from the future!”, what might we see? I predict:

  • We’ll see a version of PHP with a double-digit minor version number. It would be wonderful to have full native support for working with Unicode-encoded strings, but the dev team has all but given up on it so don’t hold your breath. With no clear changes intrusive enough to warrant a major version bump, I can easily imagine a PHP 5.10, 5.11, 5.12, …
  • We’ll see minor enhancements that mirror other programming languages. We’ve recently gained binary number literals, short array syntax, and function array referencing in PHP 5.4, and generators and finally in 5.5. Python-style array slicing would be welcome, as well as a C#-inspired get/set property syntax.
  • The ecosystem will have less frameworks, more meta-frameworks. First there were libraries, then CMS and blogging platforms, then full-featured frameworks. The monolith platform trend has peaked and we’re scaling back with micro-frameworks and meta-frameworks. Light-weight platforms that gather diverse libraries into an easily-installable bundle or package will bring us full-circle.
  • There will be a plethora of new extensions. New tools like Zephir make it easier for non-C developers to write extensions, so expect to see a fair amount of new extensions as these offerings mature. And of course, some extensions now in Pecl may make it to core and old extensions will be retired. embedded NoSQL service would compliment the SQLite extension nicely, don’t you think?
  • There will be less reliance on the Zend Engine. Most people aren’t aware of other implementations of PHP, such as Phalanger, Quercus, HHVM, and even Parrot. A future where various run-times, each optimized for a particular use case, can be swapped out as needed doesn’t seem implausible.
  • PHP will adapt. An increasing share of mobile devices, C10k, Web Sockets — yes, the way we use the Web is changing. Offerings like FastCGI/FPM, HHVM, and Ratchet are just the tip of the iceberg of what PHP needs to meet these challenges head-on. But we might find PHP in unexpected places, too. How about in routers, smart appliances, and other devices? With a built-in web server and embedded database, the *AMP stack can now be spelled just PHP. Shipping a release with a reduced set of core extensions/functions and specialized run-time could make Embedded PHP a reality.
  • PHP will thrive. Despite its warts, there aren’t any mainstream languages that come remotely close to integrating with the web stack as intimately and as flexible as PHP does. We can access incoming data directly with $_GET and $_POST, and the functionality for working with sessions and headers is baked right in. Languages like Java, Ruby, Python, et al. need special frameworks or libraries to do these things comfortably. Detractors can complain all they want, but another language won’t displace PHP any time soon unless it can integrate as smoothly.

Your Thoughts?

But disappearing blue boxes don’t exist and no one really knows what the future holds. I’ve just tried to observe the general trend of things and conservatively estimate where we could end up. Perhaps some predictions have merit; maybe some are laughable. What do you think?

I’ll leave you with one of my favorite futurology-related quotes:

The best way to predict the future is to invent it. – Alan Kay

Feel free to post your thoughts in the comments section below.

Timothy BoronczykTimothy Boronczyk
View Author

Timothy Boronczyk is a native of Syracuse, New York, where he lives with no wife and no cats. He has a degree in Software Application Programming, is a Zend Certified Engineer, and a Certified Scrum Master. By day, Timothy works as a developer at ShoreGroup, Inc. By night, he freelances as a writer and editor. Timothy enjoys spending what little spare time he has left visiting friends, dabbling with Esperanto, and sleeping with his feet off the end of his bed.

Share this article
Read Next
Get the freshest news and resources for developers, designers and digital creators in your inbox each week
Loading form