php
TLDR
Run PHP script
$ php [script.php]
Execute code$ php -r 'echo "Hello\n";'
Start built-in server$ php -S localhost:8000
Interactive mode$ php -a
Check syntax$ php -l [script.php]
Show configuration$ php -i
Show version$ php -v
SYNOPSIS
php [options] [file] [args]
DESCRIPTION
php is the PHP interpreter. Server-side scripting language.
The tool runs PHP scripts. Web and CLI applications.
php executes PHP code.
PARAMETERS
FILE
PHP script to run.-r CODE
Execute code.-S ADDR:PORT
Built-in server.-a
Interactive shell.-l
Syntax check.-i
Show phpinfo.-v
Show version.
CAVEATS
Configuration via php.ini. Extension availability varies.
HISTORY
PHP was created by Rasmus Lerdorf in 1994 for web development.


