DEV Community

Discussion on: Would a compiled version of PHP be great

Collapse
 
rhymes profile image
rhymes

Facebook first released HPHPc in 2010 to transpile PHP to C++ for its website. Then they released HHVM in 2011 which is a VM with a JIT compiler the sole goal is to make PHP faster. They also created Hack which is a PHP dialect with static typing supported by HHVM.

I believe it's still how they build the Facebook website.

I think this covers your use case.

Collapse
 
kip13 profile image
kip

Another benefit of Hack is an implementation of asynchronous programming

Hack provides a feature called async that provides your program the benefit of cooperative multi-tasking. It allows code that utilizes the async infrastructure to hide input/output (I/O) latency and data fetching.