Alpine Linux docker image with PHP 5.6 set up with "php" as entrypoint.
$ docker run --rm -it -v $(pwd):/data jimlei/alpine-phpcli -v
Add to ~/.bashrc
alias php='docker run --rm -it -v $(pwd):/data jimlei/alpine-phpcli'
Load the changes
$ source ~/.bashrc
Usage
$ php -v