$ curl cheat.sh/
 cheat.sheets:php 
# PHP is a server-side scripting language designed primarily for web development
# but also used as a general-purpose programming language

# To view the php version:
php -v

# To view the installed php modules:
php -m

# To view phpinfo() information:
php -i

# To lint a php file:
php -l file.php

# To lint all php files within the cwd:
find . -name "*.php" -print0 | xargs -0 -n1 -P8 php -l

# To enter an interactive shell:
php -a

# To locate the system's php.ini files:
php -i | grep "php.ini"

# To start a local webserver for the cwd on port 3000 (requires php >= 5.4):
php -S localhost:3000

# See also:
#   PHP language cheat sheets at /php/
#   list of pages:      /php/:list
#   search in pages:    /php/~keyword

 cheat:php 
# To view the php version:
php -v

# To view the installed php modules:
php -m

# To view phpinfo() information:
php -i

# To lint a php file:
php -l file.php

# To lint all php files within the cwd:
find . -name "*.php" -print0 | xargs -0 -n1 -P8 php -l

# To enter an interactive shell:
php -a

# To locate the system's php.ini files:
php -i | grep "php.ini"

# To start a local webserver for the cwd on port 3000 (requires php >= 5.4):
php -S localhost:3000

 tldr:php 
# php
# PHP command-line interface.
# More information: <https://php.net>.

# Parse and execute a PHP script:
php path/to/file

# Check syntax on (i.e. lint) a PHP script:
php -l path/to/file

# Run PHP interactively:
php -a

# Run PHP code (Notes: Don't use <? ?> tags; escape double quotes with backslash):
php -r "code"

# Start a PHP built-in web server in the current directory:
php -S host:port

# Get a list of installed PHP extensions:
php -m

# Display information about the current PHP configuration:
php -i

# Display information about a specific function:
php --rf function_name

$
Follow @igor_chubin cheat.sh