hiphop - What exactly is HHVM and/or PHP execution engines? -


i've been reading facebook's hack lead me reading hiphop virtual machine. wanted better understanding of , not find clear definition. wikipedia defines as: hiphop php (shortened hiphop) describes series of php execution engines , improvements created facebook. don't understand php engines are...

so guess question is: "php execution engines?" , how benefit php applications?

thanks!

you can run php code standard (zend) engine download php.net, works great. if download wamp, mamp, or of other pre-packaged php & mysql operating system packages, you're getting.

alternately can run (most of[1]) php code hiphop, works great.

which 1 you're using should invisible end users. developers, , operations teams need know.

you may choose use hiphop if you're running site gets lot of traffic. hiphop while not supporting of features of php, run bunch faster. has new features not available in main php distribution type hinting. these can provide pretty attractive tools read through code checking bugs.

reasons may want use hiphop:

  • performance big deal you
  • the static analysis tools available hiphop have serious worth team
  • the new features in hiphop not in zend php attractive team.

reasons may want use zend php

  • you need extension not available hiphop (there's lots of extensions out there, think: gd, curl, imagemagik, etc. many available hiphop now, many aren't).
  • your code, or framework making use of unsupported features.
  • you have lot of expertise in hosting current webserver & php stack, , don't want start scratch.

this post goes hhvm vs hack differences, , gives nice run down: http://www.marco.org/2014/03/21/hack

[1] not code can run regular php engine works on hiphop. they're working on of issues, they've decided not fix (i think variable variables may example of e.g. $$var)


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -