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
1 answer

How to improve poor array performance with HHVM?

I was trying to do some benchmarks of php 5.5 vs HHVM and was getting some pretty good results with hhvm. However the performance of bubble sort on HHVM is pretty bad. I am guessing it has something to do with arrays. In the below example when…
SamFisher83
  • 3,937
  • 9
  • 39
  • 52
4
votes
1 answer

HHVM through Apache mod_fastcgi on debian

I've been able to rather easily get facebooks hhvm working from prebuilt debian packages as well as compile it, and afterwards to run it behind apache as a proxy. The problem with the proxy setup is though, that I can't get response headers other…
griffin
  • 1,261
  • 8
  • 24
3
votes
2 answers

Builtin for checking if vec contains specified element

Let's say, I have a vec containing a list of integers that may be non-continuous (due to element being removed from database). Example: $occupiedNumbers = vec[1, 2, 3, 5, 6, 8, 10, 11, 12, 13, 15, 16]; Now what I need is to check if this vec…
Lukasz032
  • 354
  • 4
  • 14
3
votes
0 answers

Confuse how to use Repo Authoritative mode on HHVM using Ubuntu 16.04 LTS

I just tried to build some website using hack lang developed by facebook, and found an interesting feature called Repo Authoritative. I had tried to follow the official docs : https://docs.hhvm.com/hhvm/advanced-usage/repo-authoritative But still no…
3
votes
0 answers

nginx sets the wrong Content-Type header for dynamically generated files

I have a web application that dynamically generates PDFs using mPDF (v6.0.0, http://mpdf1.com). While everything works fine with Apache and PHP I have some troubles with nginx + HHVM. The thing is that nginx refuses to set the correct Content-Type…
JZubero
  • 41
  • 1
  • 6
3
votes
1 answer

Wordpress ignoring HHVM upload max file size

I am having the following problem, I am running NGINX and HHVM (VM 3.9.1 rel): Wordpress ignores my /etc/hhvm/php.ini configuration file which has the following directives: ;php options session.save_handler = files session.save_path =…
3
votes
1 answer

HHVM fallback to PHP-FPM

I am running a PHP application on nginx with HHVM as main and PHP-FPM as backup This is my config of nginx regarding the php processing location ~ \.(hh|php)$ { fastcgi_intercept_errors on; error_page 500 501 502 503 = @fallback; …
5ud0
  • 121
  • 1
  • 11
3
votes
1 answer

Easter date function in hhvm

I've seend that hhvm does not support the easter_date() function. http://docs.hhvm.com/manual/en/function.easter-date.php There is an alternative for that? I need to use this function or equivalent and i also want to use HHVM. Thanks
user2528085
  • 941
  • 1
  • 9
  • 14
3
votes
1 answer

Figure out what files are loaded and in which order

Sidenode: I'm playing around with HHVM and stuck on some point where it gets to complex for me. So I'm searching some new tips and hope that someone could help me.My goal is to build HHVM from source with the laravel Framework as HHVM-extension. So…
PKeidel
  • 2,559
  • 1
  • 21
  • 29
3
votes
1 answer

hhvm nginx not returning value for upload_max_filesize/post_max_size

I'm running hhvm (3.6) through nginx (1.6.2) via fastcgi on ubuntu (14.04). Calling ini_get('post_max_size') or ini_get('upload_max_filesize') returns an empty string within scripts returned by nginx. However, the same simple script…
David
  • 51
  • 1
  • 7
3
votes
2 answers

Nginx and HHVM always return a 404

I know this is not an uncommon problem, but somehow I don’t seem to be able to find a direct answer. Is somebody able to answer this as straight forward as possible? My NGINX (deliver static files) and HHVM (hhvm index.php from console) are working…
Bob van Luijt
  • 7,153
  • 12
  • 58
  • 101
3
votes
0 answers

How to debug a failing HHVM phpunit?

I'm trying to run our testsuite in HHVM. Unfortunately it doesn't work. PHPunit starts and then just exits without runnning a single test (exit code 255). There is no error message whatsoever and I don't know how to figure out whats wrong: $> hhvm…
Andreas Gohr
  • 4,617
  • 5
  • 28
  • 45
3
votes
2 answers

Codeigniter and Hack Language

I am wondering how and if it is possible to run Hack code with HHVM in codeigniter models and controllers. Also are there any active efforts to port PHP frameworks like CI into Hack?
DMin
  • 10,049
  • 10
  • 45
  • 65
3
votes
1 answer

Php Get the generic type using reflection in Hack

I am exploring Hack with HHVM, and I am using generics. I have the following Base Repository: class BaseRepository{ public function __construct(T $model){ ... } } Then I have sub-class UserRepository like so: class…
Thomas
  • 962
  • 1
  • 6
  • 12
3
votes
0 answers

How to access php session data within a HHVM process using C++?

Here is some background info: I have a dynamic loaded extension running on HHVM using FastCGI I have a login'ed session ready. e.g. example.com/login.php I have my own TCP server running within the HHVM fastCGI process, listening port e.g.…
kchkg
  • 147
  • 3
  • 13