Facebook's Hack and HHVM

Comments discuss Facebook's use of Hack (a PHP superset) and HHVM runtime instead of standard PHP, including historical tools like HipHop for compiling PHP to C++.

📉 Falling 0.3x Programming Languages
1,766
Comments
20
Years Active
5
Top Authors
#3054
Topic ID

Activity Over Time

2007
2
2008
3
2009
11
2010
88
2011
73
2012
135
2013
156
2014
305
2015
157
2016
80
2017
126
2018
113
2019
94
2020
92
2021
95
2022
53
2023
71
2024
69
2025
41
2026
2

Keywords

e.g PHP JIT JS HipHop HpHp engineering.fb KPHP FB HPHP php hack facebook language code vm engine runtime jit extension

Sample Comments

nik736 Sep 10, 2024 View on HN

Is the HHVM still in use at Facebook? Or did PHP catch up?

klodolph Oct 27, 2021 View on HN

Facebook uses Hack. Hack is to PHP what C++ is to C, sort of. You can take PHP code and run it as Hack code, sometimes, but there are lots of reasons why PHP code might not be valid Hack code these days (Hack has diverged from upstream).https://en.wikipedia.org/wiki/Hack_(programming_language)

amelius Aug 23, 2017 View on HN

Wasn't there a PHP compiler at Facebook called Hip-hop?

firloop Jun 5, 2015 View on HN

Well, Facebook spun PHP off into Hack if that counts.

la_fayette Mar 6, 2022 View on HN

PHP is amazing! Facebook uses Hack on HHVM.

badc0ffee May 14, 2025 View on HN

Don't forget that Facebook used PHP: https://en.wikipedia.org/wiki/HHVM

robgibbons Feb 9, 2012 View on HN

Facebook doesn't run on plain old PHP, it's compiled with HPHP into "highly optimized" C++

hdoan741 Aug 13, 2012 View on HN

Is there any official reference to backup the claim? I doubt Facebook would spend effort on doing this since they have already port PHP to C++ with Hiphop.

DanOWar Mar 7, 2014 View on HN

Facebook's HHVM (HipHop VM) compiles webpages into native machine code that can be executed directly on the processor. People often confuse HHVM with HPHPc, also made by Facebook. HPHPc came first; it was a converter that converted all the PHP files in a folder into individual C++ files. In other words, you would end up uploading the C++ files to the server, not PHP files. Facebook abandoned HPHPc early on for multiple reasons (it was actually developed by a single developer as a tool for o

debugnik Nov 3, 2024 View on HN

I think they meant Facebook switched their PHP code to Hack and HHVM, their own PHP-like language and implementation.