<commit_before># Supported tags and respective `Dockerfile` links

-      [`3.3.3-cli`, `3.3-cli`, `3.3.3`, `3.3` (*3.3/Dockerfile*)](https://github.com/estebanmatias92/docker-hhvm/blob/master/3.3/Dockerfile)
-      [`3.3.3-fastcgi`, `3.3-fastcgi` (*3.3/fastcgi/Dockerfile*)](https://github.com/estebanmatias92/docker-hhvm/blob/master/3.3/fastcgi/Dockerfile)
-      [`3.4.2-cli`, `3.4-cli`, `3.4.2`, `3.4` (*3.4/Dockerfile*)](https://github.com/estebanmatias92/docker-hhvm/blob/master/3.4/Dockerfile)
-      [`3.4.2-fastcgi`, `3.4-fastcgi` (*3.4/fastcgi/Dockerfile*)](https://github.com/estebanmatias92/docker-hhvm/blob/master/3.4/fastcgi/Dockerfile)
-      [`3.5.0-cli`, `3.5-cli`, `3-cli`, `cli`, `3.5.0`, `3.5`, `3`, `latest` (*3.5/Dockerfile*)](https://github.com/estebanmatias92/docker-hhvm/blob/master/3.5/Dockerfile)
-      [`3.5.0-fastcgi`, `3.5-fastcgi`, `3-fastcgi`, `fastcgi` (*3.5/fastcgi/Dockerfile*)](https://github.com/estebanmatias92/docker-hhvm/blob/master/3.5/fastcgi/Dockerfile)

Docker nginx base image with dockerize.

# What is HHVM?

HipHop Virtual Machine (HHVM) is a process virtual machine based on just-in-time (JIT) compilation, serving as an execution engine for PHP and Hack programming languages. By using the principle of JIT compilation, executed PHP or Hack code is first transformed into intermediate HipHop bytecode (HHBC), which is then dynamically translated into the x86-64 machine code, optimized and natively executed.

> [wikipedia.org/wiki/HipHop_Virtual_Machine](https://en.wikipedia.org/wiki/HipHop_Virtual_Machine)

![logo](https://raw.githubusercontent.com/estebanmatias92/docker-hhvm/master/logo.png)

# How to use this image

## With command line

For PHP projects run through the command line interface (CLI), you can do the following.

### Create a `Dockerfile` in your PHP project

       FROM estebanmatias92/hhvm:3.5-cli
       COPY . /usr/src/myapp
       WORKDIR /usr/src/myapp
       CMD [ "hhvm", "./your-script.php" ]

Then, run the commands to build and run the Docker image:

       docker build -t my-php-app .
       docker run -it --rm --name my-running-app my-php-app

### Run a single PHP script<commit_msg>Fixing README.md<commit_after># Supported tags and respective `Dockerfile` links

-      [`3.3.3-cli`, `3.3-cli`, `3.3.3`, `3.3` (*3.3/Dockerfile*)](https://github.com/estebanmatias92/docker-hhvm/blob/master/3.3/Dockerfile)
-      [`3.3.3-fastcgi`, `3.3-fastcgi` (*3.3/fastcgi/Dockerfile*)](https://github.com/estebanmatias92/docker-hhvm/blob/master/3.3/fastcgi/Dockerfile)
-      [`3.4.2-cli`, `3.4-cli`, `3.4.2`, `3.4` (*3.4/Dockerfile*)](https://github.com/estebanmatias92/docker-hhvm/blob/master/3.4/Dockerfile)
-      [`3.4.2-fastcgi`, `3.4-fastcgi` (*3.4/fastcgi/Dockerfile*)](https://github.com/estebanmatias92/docker-hhvm/blob/master/3.4/fastcgi/Dockerfile)
-      [`3.5.0-cli`, `3.5-cli`, `3-cli`, `cli`, `3.5.0`, `3.5`, `3`, `latest` (*3.5/Dockerfile*)](https://github.com/estebanmatias92/docker-hhvm/blob/master/3.5/Dockerfile)
-      [`3.5.0-fastcgi`, `3.5-fastcgi`, `3-fastcgi`, `fastcgi` (*3.5/fastcgi/Dockerfile*)](https://github.com/estebanmatias92/docker-hhvm/blob/master/3.5/fastcgi/Dockerfile)

# What is HHVM?

HipHop Virtual Machine (HHVM) is a process virtual machine based on just-in-time (JIT) compilation, serving as an execution engine for PHP and Hack programming languages. By using the principle of JIT compilation, executed PHP or Hack code is first transformed into intermediate HipHop bytecode (HHBC), which is then dynamically translated into the x86-64 machine code, optimized and natively executed.

> [wikipedia.org/wiki/HipHop_Virtual_Machine](https://en.wikipedia.org/wiki/HipHop_Virtual_Machine)

![logo](https://raw.githubusercontent.com/estebanmatias92/docker-hhvm/master/logo.png)

# How to use this image

## With command line

For PHP projects run through the command line interface (CLI), you can do the following.

### Create a `Dockerfile` in your PHP project

       FROM estebanmatias92/hhvm:3.5-cli
       COPY . /usr/src/myapp
       WORKDIR /usr/src/myapp
       CMD [ "hhvm", "./your-script.php" ]

Then, run the commands to build and run the Docker image:

       docker build -t my-php-app .
       docker run -it --rm --name my-running-app my-php-app

### Run a single PHP script
{'fraction_non_alphanumeric': 0.16620241411327763, 'fraction_numerical': 0.0436397400185701, 'mean_word_length': 3.729967069154775, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 16, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3561036', 'n_tokens_mistral': 1684, 'n_tokens_neox': 1597, 'n_words': 340}