Shorten MixedArray PGO offset check
[hiphop-php.git] / README.md
blob07560400670a50f05b41408c33eabc665429ed5b
1 # HHVM
3 [HHVM page](https://hhvm.com) |
4 [HHVM documentation](https://docs.hhvm.com/hhvm/) |
5 [Hacklang page](http://hacklang.org) |
6 [General group](https://www.facebook.com/groups/hhvm.general/) |
7 [Dev group](https://www.facebook.com/groups/hhvm.dev/) |
8 [Twitter](https://twitter.com/HipHopVM)
10 HHVM is an open-source virtual machine designed for executing programs written in [Hack](http://hacklang.org). HHVM uses a just-in-time (JIT) compilation approach to achieve superior performance while maintaining the development flexibility that PHP provides.
12 HHVM is intended for [Hack](http://hacklang.org) projects, and also supports a large subset of PHP 7 that is required by common tools and libraries. We no longer recommend using HHVM for purely PHP projects.
14 HHVM should be used together with a webserver like the built in, easy to deploy [Proxygen](https://docs.hhvm.com/hhvm/basic-usage/proxygen), or a [FastCGI](https://docs.hhvm.com/hhvm/advanced-usage/fastCGI)-based webserver on top of nginx or Apache.
16 ## Installing
18 If you're new, try our [getting started guide](https://docs.hhvm.com/hhvm/getting-started/getting-started).
20 You can install a [prebuilt package](https://docs.hhvm.com/hhvm/installation/introduction#prebuilt-packages) or [compile from source](https://docs.hhvm.com/hhvm/installation/building-from-source).
22 ## Running
24 You can run standalone programs just by passing them to hhvm: `hhvm my_script.php`.
26 If you want to host a website:
27 * Install your favorite webserver. [Proxygen](https://docs.hhvm.com/hhvm/basic-usage/proxygen) is built in to HHVM, fast and easy to deploy.
28 * Install our [package](https://docs.hhvm.com/hhvm/installation/introduction#prebuilt-packages)
29 * Start your webserver
30 * Run `sudo /etc/init.d/hhvm start`
31 * Visit your site at `http://.../index.php`
33 Our [getting started guide](https://docs.hhvm.com/hhvm/getting-started/getting-started) provides a slightly more detailed introduction as well as links to more information.
35 ## Contributing
37 We'd love to have your help in making HHVM better. If you're interested, please read our [guide to contributing](CONTRIBUTING.md).
39 ## License
41 HHVM is licensed under the PHP and Zend licenses except as otherwise noted.
43 The [Hack typechecker](hphp/hack) is licensed under the MIT [License](hphp/hack/LICENSE) except as otherwise noted.
45 ## Reporting Crashes
47 See [Reporting Crashes](https://github.com/facebook/hhvm/wiki/Reporting-Crashes) for helpful tips on how to report crashes in an actionable manner.
49 ## Reporting and Fixing Security Issues
51 Please do not open GitHub issues or pull requests - this makes the problem
52 immediately visible to everyone, including malicious actors. Security issues in
53 HHVM can be safely reported via HHVM's Whitehat Bug Bounty program:
55 [https://www.facebook.com/whitehat](https://www.facebook.com/whitehat)
57 Facebook's security team will triage your report and determine whether or not
58 is it eligible for a bounty under our program.
60 ## FAQ
62 Our [user FAQ](https://docs.hhvm.com/hhvm/FAQ/faq) has answers to many common questions about HHVM, from [general questions](https://docs.hhvm.com/hhvm/FAQ/faq#general) to questions geared towards those that want to [use](https://docs.hhvm.com/hhvm/FAQ/faq#users).
64 There is also a FAQ for [contributors](https://github.com/facebook/hhvm/wiki/FAQ#contributors) to HHVM.