Questions tagged [hhvm]

HipHop VM (HHVM) is a virtual machine designed for executing programs written in Hack and PHP.

HipHop VM (HHVM) is a virtual machine designed to execute bytecode compiled just-in-time from both the PHP and Hack programming languages. It is maintained by Facebook.

HHVM is created as the successor of the HipHop for PHP (HPHPc) PHP execution engine, which is a PHP-to-C++ transpiler also created by Facebook. Based on the gained experience and aiming to solve issues brought by HPHPc, in early 2010 Facebook decided to create a JIT-based PHP virtual machine. Issues associated with HPHPc included its flattened curve for further performance improvements, lack of full support for the PHP language, and difficulties related to specific time- and resource-consuming development and deployment processes.

Versions and Support

+--------------+----------------+------------------+
|  LTS Version |  Release Date  |  End of Support  |
+--------------+----------------+------------------+
| 3.6          | 11 March 2015  | 28 Jan 2016      |
| 3.9          | 14 Aug 2015    | 15 July 2016     |
| 3.12         | 29 Jan 2016    | 30 Dec 2016      |
+--------------+----------------+------------------+

External links

532 questions
4
votes
2 answers

hhvm nginx toString server error with Magento Magmi

I'm trying to run magmi product import plugin on a Magento app which is running on an aws ec2 instance that has NGINX & HHVM on it. When I try to run the the magmi product import app on Magento I get the below server error in my hhvm error log. …
Holly
  • 7,462
  • 23
  • 86
  • 140
4
votes
1 answer

Compile hhvm code into byte code & remove the source files

Is it possible to compile the php source code into hhvm byte code the first time and them remove the source files. The byte code may be regenerated when the script files are updated, apparently needing a manual comand to do so. If it is possible…
Huzaib Shafi
  • 1,153
  • 9
  • 24
4
votes
2 answers

HHVM + NGinx Connection refused

I'm trying to install HHVM on Debian 7 by prebuilt package. I've another server with the same configuration and it's working but in one of the servers HHVM FastCGI refuses the connection It's /var/log/nginx/error.log 2014/11/25 23:24:10 [error]…
Cagatay Gurturk
  • 7,186
  • 3
  • 34
  • 44
4
votes
1 answer

HHVM: pthreads PHP classes

The installation of pthreads in PHP (for the use of Threaded, Thread, Worker, Pool, etc) is quite "complex" and that's not very pratical when you use packages of your Linux ditribution that doesn't have ZTS enabled (you have to download PHP sources…
Morgan Touverey Quilling
  • 4,181
  • 4
  • 29
  • 41
4
votes
0 answers

HHVM FastCGI configuration issues - ProxyPass fails

I am on Ubuntu 12.04 running on Vagrant. Apache 2.2.22 I have been trying to test my app on hhvm. I configured everything following this: https://github.com/facebook/hhvm/wiki/fastcgi After adding fastcgi module part in my vhost config, I started…
ranguren
  • 41
  • 3
4
votes
3 answers

Hack typechecker not recognising 'global' keyword inside a function

I'm using HHVM to write a system tool and I cannot for the life of me figure out why this code issues an error when I run hh_client $__al_paths = array(); function requires(string $classPath): void { global $__al_paths; $className =…
Jader Feijo
  • 1,209
  • 1
  • 10
  • 11
4
votes
1 answer

Performance difference between Hack / HHVM vs PHP / HHVM

I recently analysed performance differences of two test PHP scripts by running them on various combinations of Apache / NGinx / HHVM / ReactPHP. My question now is if there is an expected performance difference between a PHP script executed on HHVM…
T-Man
  • 51
  • 5
4
votes
1 answer

Is it possible to store HHVM bytecode as a file?

Is there a way to save HHVM bytecode as a file, since HHVM uses JIT bytecode compilation instead of compiling? If not, are there any alternatives for modern PHP versions (5.5,5.6)?
Daveman
  • 1,075
  • 9
  • 26
4
votes
1 answer

Using Laravel Queue in Supervisord and HHVM results in a lot of .map files in tmp folder

I am using Larvel 4.1. After creating a new server according to this site (http://www.tienle.com/2014/04-25/setting-nginx-hhvm-php-percona-laravel-projects.html) everything works a lot faster. I have a 40% speed performance! The only problem I still…
raice
  • 182
  • 1
  • 2
  • 10
4
votes
2 answers

HHVM 3.1.0 & PGSQL

I am having issues with getting the PGSQL extension working in HHVM 3.1.0, on Ubuntu Trusty 14.04 (LTS), with NGINX. #hhvm --version HipHop VM 3.1.0 (rel) Compiler: tags/HHVM-3.1.0-0-g71ecbd8fb5e94b2a008387a2b5e9a8df5c6f5c7b Repo schema:…
sixfive
  • 105
  • 1
  • 9
4
votes
2 answers

Is HHVM or PHP5 Zend running?

After some struggle, I finally installed Facebook HipHop Virtual Machine in Ubuntu. It is running under FastCGI (Apache 2.22). Below, the service status: marcelo@marcelo-VirtualBox:~$ service apache2 status Apache2 is running (pid…
Marcelo Sardelich
  • 952
  • 2
  • 13
  • 28
4
votes
3 answers

Manually clearing HHVM cache

I am using hhvm version 3.0.1 on ubuntu 13.10, with JIT enabled, in fastcgi mode and nginx webserver. I need to know how to clear cache so that i can see the code change immediately...
Amal
  • 545
  • 6
  • 19
4
votes
1 answer

Debugging hhvm segmentation faults

How can I debug a segmentation fault when running php script with hhvm? When I run it, I get: Core dumped: Segmentation fault Segmentation fault In stacktrace I get that it error when I call a method of the same object. Is there any code analyzer…
catalinux
  • 1,462
  • 14
  • 26
4
votes
1 answer

configure hhvm and apache for archlinux

First, i installed apache24 from AUR and hhvm from AUR (HipHop VM 2.4.0 (rel)). apache24 has mod_proxy_fcgi enabled. Running the php file from terminal with hhvm seems to work fine, but i cannot configure it to work with apache. in httpd.conf i…
ljupcho
  • 41
  • 3
4
votes
2 answers

HHVM with Nginx fastcgi not working properly

I would like to use HHVM via Nginx. (Ubuntu 12.04.2 LTS, PHP 5.3.10) I've followed the steps mentioned here: http://www.hhvm.com/blog/1817/fastercgi-with-hhvm This is how my Nginx setup looks: server { listen 80; server_name…
Bob van Luijt
  • 7,153
  • 12
  • 58
  • 101