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
10
votes
2 answers

Shapes in hacklang

I have started learning hacklang today and now I am a bit stuck on shapes: http://docs.hhvm.com/manual/en/hack.shapes.php I understand the concept of shapes and it seems really useful for me, but I can't understand why for example this code does not…
WebDevHere
  • 119
  • 1
  • 7
10
votes
3 answers

Running phpunit tests using HHVM (HipHop)

I am trying to run PHPUnit unit tests via HHVM on a virtual Ubuntu 12.04 (64-bit Server) install. The tests usually run using a phpunit.xml file located in my tests directory, which includes a bootstrap file to handle autoloading, and the tests run…
r.bilgil
  • 889
  • 2
  • 10
  • 15
9
votes
1 answer

nginx map accept header to subdirectory for api strange behaviour

I've been fiddling around with this for quite some time now, and I can't really get a grasp on how nginx+hhvm maps my requests. Basiclly, I have an API on api.example.com that I would like to call with the Accept:…
8
votes
3 answers

Is time() guaranteed to be leap-second aware?

PHP manual states that time() returns "the current UNIX timestamp" ᴀ ­and microtime() returns the "current Unix timestamp with microseconds" ʙ. However, are these functions guaranteed to behave like that of strictly…
Pacerier
  • 86,231
  • 106
  • 366
  • 634
8
votes
1 answer

Configuring HHVM 3.7 with Apache 2.4 gives me a 404?

I can't seem to configure HHVM and Apache, it keeps giving me a 404 file not found error. My configuration file for the website is saved as www.example.com.conf, it contains: ServerName website.com ServerAdmin…
Jon Cinnamon
  • 129
  • 1
  • 7
8
votes
2 answers

Chrome "stalls" request for about a minute

I am running an NGINX 1.2.1 with HHVM 3.5.0 in FastCGI Mode. As the title says, Chrome "stalls" the request for a long time after I do the following: Open up my website (takes just about 1.5 seconds) Wait for ~ 2 minutes Click on another link on…
Sergen S.
  • 81
  • 3
8
votes
1 answer

Problematic Nginx config

I have setup the following ngnix config for my Ubuntu 14.04 VPS running HHVM with ngnix: server { listen 80 default_server; listen [::]:80 default_server ipv6only=on; root /home/lephenix/main_website; index.php index.html index.htm; # Make site…
user1781267
  • 85
  • 1
  • 2
  • 6
8
votes
2 answers

Display fatal/notice errors in browser

Well I just started with hhvm/hack. But I wanted to display the errors to the browser but didnot got it working. I set the ini settings as followed error_reporting(E_ALL); ini_set('display_errors', '1'); According to a var_dump of ini_get the…
MKroeders
  • 7,562
  • 4
  • 24
  • 39
8
votes
2 answers

Remove facebook HipHop (hhvm) Ubuntu and debug it

I have installed hhvm by using the building and installing hhvm in Ubuntu 13.10 from GitHub and now I want to uninstall it from my system completely. I am not getting any documentation regarding this. I am uninstalling because I am not able to make…
Ankit Ladhania
  • 1,005
  • 1
  • 12
  • 19
8
votes
1 answer

HHVM Memcache integration

I have a Drupal 7 website with Memcache installed, which is working fine on an Apache2 web server. Now I've replaced Apache2 with HHVM (HipHop) and got a real boost on performance. The problem is that obviously Drupal can not interact with the…
Babak Vandad
  • 196
  • 1
  • 4
7
votes
1 answer

HHVM RepoMode Segmentation Fault

Specs: Ubunutu 16.04.1 Server nginx 1.10 HHVM 3.17.0 I am attempting to gather a list of files, and run them through the hhvm compiler to utilize repo mode, with the following code: #!/bin/bash if [ "$(whoami)" != "root" ]; then echo "Only root…
Kevin
  • 2,684
  • 6
  • 35
  • 64
7
votes
1 answer

Will HHVM be able to run PHP7

I know that PHP7 has a new compiler that is almost as fast as HHVM, but I am just curious if HHVM will also be able to run PHP7 as well as PHP5. I can't find any details on this. Everything I find is just a HHVM vs PHP7 Also for that matter can…
ggedde
  • 582
  • 5
  • 12
7
votes
1 answer

How to output/display Fatal Errors to browser on HHVM

After a day searching for solutions i hope to find an answer here. I'm running Laravel 4.2 on Homestead 2.0 (Vagrant) and i'm trying to get a simple parse error to output to my browser, but instead i keep getting a white screen. I can find the…
grisgruis
  • 1,389
  • 1
  • 8
  • 6
7
votes
1 answer

extremely slow HHVM, Wordpress, Nginx

I might be doing something wrong but I am doing a bit of testing between a php-fpm wordpress setup and a HHVM wordpress setup. I've heard & seen many mind blowing results from HHVM, but I'm just shocked at the results I'm getting. Using the…
Justin Workman
  • 380
  • 3
  • 6
7
votes
1 answer

How to Use Mysql PDO driver with hacklang/hhvm

I am getting a pdo exception "could not find driver" when trying to access MySql through PDO using hacklang/hhvm (compiled today). I tried installing php5-mysql but I'm not even sure that is helpful because I'm not sure of the relationship between…
tslater
  • 4,362
  • 3
  • 23
  • 27
1
2
3
35 36