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

hhvm performance similar to PHP 5.5 Ubuntu 14.04

I must have missed something. But I'm getting the same performance with php and hhvm by running ab -n 100 -c 10 http://127.0.0.1:8080/ php -v returns: HipHop VM 3.2.0 (rel) Compiler: tags/HHVM-3.2.0-0-g01228273b8cf709aacbd3df1c51b1e690ecebac8 Repo…
Jad Joubran
  • 2,511
  • 3
  • 31
  • 57
5
votes
2 answers

Run both HHVM and Normal Apache Server

This morning I started using HHVM as my default local server. Most things are fine, but I still have applications that HHVM doesn't fully support yet. Rather than changing my configuration and restarting services, it would be much easier if I could…
Nicholas Summers
  • 4,444
  • 4
  • 19
  • 35
5
votes
1 answer

Symfony 1.4 on HHVM with memcached as a session not working

I'm trying to use Memcached as a session for Symfony 1.4 running under HHVM 3.1.0 But I seem to be getting this error: \nFatal error: No storage module chosen - failed to initialize session in…
Passionate Engineer
  • 10,034
  • 26
  • 96
  • 168
5
votes
1 answer

can't load HHVM extension (dynamic)

I'm writing an C++ extension (dynamic load) for HHVM. I followed the instructions on this page: https://github.com/facebook/hhvm/wiki/Extension-API which links to an example in: https://github.com/hhvm/extension-example I compiled hhvm on Ubuntu…
kchkg
  • 147
  • 3
  • 13
5
votes
2 answers

Installing composer using vagrant, hhvm, and Ubuntu 14.04

At the end of my vagrant provisioning script I attempt to install composer using the following : sudo curl -sS https://getcomposer.org/installer | php sudo mv composer.phar /usr/local/bin/composer However when this is executed I get the following…
cubiclewar
  • 1,569
  • 3
  • 20
  • 37
5
votes
3 answers

nginx - laravel - hhvm-Fastcgi get error 500

I install a LEMP server in ubuntu 12.04 LTS 64 whit HHVM Fastcgi Service and i install laravel via laravel.phar ( and test via composer too ) when in get my site in brwoser do not display any error but in chrome developer console get error 500 i…
Mohammad
  • 652
  • 1
  • 7
  • 18
5
votes
1 answer

HHVM+Hacklang: errors/warnings output into browser

Is there any way to tell HHVM to output Hacklang warnings and errors into the browser? Something like PHP does with enabled display_errors, display_startup_errors and error_reporting set to E_ALL HHVM version: $ php -v HipHop VM…
meta-nickname
  • 83
  • 1
  • 4
5
votes
1 answer

HipHop for PHP, deploying apps

After Googling, I found a lot of HipHop documentation, but plenty was posted between 2011 and 2013. Earlier this year was launched a new version of HipHop that even supports Drupal and includes a lot of improvements... I've always used the Zend…
Ragen Dazs
  • 2,115
  • 3
  • 28
  • 56
5
votes
1 answer

Handling fastcgi_param with HHVM fastcgi in Nginx

Is it correct that HHVM via fastcgi into Nginx doesn't support fastcgi_param? And if so, how can this be resolved? Like: location ~ .php$ { ## Execute PHP scripts if (!-e $request_filename) { rewrite / /index.php last; } expires off; …
Bob van Luijt
  • 7,153
  • 12
  • 58
  • 101
5
votes
1 answer

Does PHP engine optimize anonymous functions within loops?

I have an array which stores multiple references to a single anonymous function: $fns = array(); //some code $fn = function(){ echo 'this is closure 12345... < 67890'; // etc etc.. }; for($x=12345; $x<67890; ++$x){ $fns[$x] = $fn; } As…
Pacerier
  • 86,231
  • 106
  • 366
  • 634
4
votes
0 answers

Unsuccessful install HHVM on MacOS

I try to install HHVM on Mac. I use this official link https://docs.hhvm.com/hhvm/installation/mac. I did brew tap hhvm/hhvm. After that I tried to do brew install hhvm. But I got next error: Last 15 lines from…
NN_05
  • 179
  • 1
  • 1
  • 8
4
votes
1 answer

hh_client reports errors on package

I am following the instruction in Getting started on official Hacklang website. As it says, I run: $ touch .hhconfig $ mkdir bin src tests $ cat > hh_autoload.json { "roots": [ "src/" ], "devRoots": [ "tests/" ], …
Clover Ye
  • 253
  • 3
  • 8
4
votes
1 answer

Most efficient way to print variable number of characters in Hack?

I'm working on a Hack project and I've come across a situation where I need to print $n spaces. Here's how I'm currently doing it: for ($i = 0; $i < $n; $i++) echo " "; I'm wondering whether $n calls to echo is the most efficient way to go about…
Tom
  • 350
  • 4
  • 21
4
votes
1 answer

Is it more performant to use Proxygen or NGINX + FastCGI local socket with HHVM?

HHVM has a built in Server, Proxygen. You can run HHVM with the Proxygen server or run it in FastCGI mode, using another server such as nginx or apache to handle web requests. I cannot find any benchmarks or authoritative source that provides any…
Ray
  • 40,256
  • 21
  • 101
  • 138
4
votes
1 answer

Failed to initialize central HHBC repository: Failed to initialize schema

The complete error is: Failed to initialize central HHBC repository: Failed to initialize schema in /home/shreeram/.hhvm.hhbc: I am trying to configure hhvm ana apache2. For that i am following this link …
shreeram banne
  • 526
  • 4
  • 12