Why Facebook’s HHVM Is Shifting from PHP 7 to Hack: The Backend Evolution

Facebook’s HHVM team announced that, due to major compatibility issues between PHP 7 and PHP 5, they will gradually abandon PHP support in favor of the Hack language, aiming for better performance, type safety, and a dedicated ecosystem while phasing out PHP 5 compatibility.

21CTO
21CTO
21CTO
Why Facebook’s HHVM Is Shifting from PHP 7 to Hack: The Backend Evolution
Because PHP 7 and PHP 5 have major compatibility problems, the Facebook HHVM team decided to develop HHVM using Hack.

Facebook’s HHVM is a high‑performance PHP execution engine that has announced it will gradually remove its dependence on the latest major PHP version—PHP 7—and focus on the Hack language, a branch of PHP.

The next long‑term support version, HHVM 3.24, is scheduled for early 2018 and may be the last release that includes PHP 5 support.

The HHVM team explains that supporting both PHP 7 and Hack leads to compromises for both; therefore they plan to detach from PHP entirely to fully exploit Hack’s advantages without the legacy issues of PHP’s design.

PHP 7 diverges significantly from PHP 5, breaking backward compatibility. The HHVM team intends to follow a similar path, not concentrating on PHP 7, but providing a clear roadmap that makes Hack an excellent language for web development, free from the constraints of its PHP origins.

In recent years Facebook has been running Hack on HHVM. The team notes that Hack has addressed many of the shortcomings of PHP 5 that PHP 7 either fixed or left unresolved.

By reducing reliance on PHP, the HHVM team hopes that HHVM and Hack together will deliver a better, higher‑performance experience for developers. Improvements designed specifically for Hack include:

Enhanced Hack arrays that make type checking easier.

Elimination of destructors and references.

Use of garbage collection to achieve measurable performance gains.

Hack is built on the PHP ecosystem, and Facebook plans to make HHVM compatible with major PHP tools such as Composer and PHPUnit.

The ultimate goal is to give Hack its own core framework ecosystem, including the Hack standard library, TypeAssert for converting untyped data to typed data, and an autoloader with support for type aliases and functions.

This site provides comprehensive coverage.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

PHPhhvmhack
21CTO
Written by

21CTO

21CTO (21CTO.com) offers developers community, training, and services, making it your go‑to learning and service platform.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.