Command-line tool
php
brew/php
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
General-purpose scripting language php php82
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
winget install --id PHP.PHP.8.2 -e scoop install php-nts scoop install php
macOS
brew install php
Linux
brew install php
Parse and execute a PHP script
php path/to/file
Check syntax on (i.e. [l]int) a PHP script
php -l path/to/file
Run PHP inter[a]ctively
php -a
Related command-line tools
- PHP 8.2 - Non-thread safe
PHP command-line interface. php php82 - icon
General-purpose programming language - efm-langserver
General purpose Language Server - clojure
Dynamic, general-purpose programming language - ammonite
Ammonite lets you use the Scala language for scripting purposes: in the REPL, as scripts, as a library, or as a… - ocaml
General purpose programming language in the ML family programming foss open-source language ocaml - goat
General purpose AT Protocol CLI in Go - gpp
General-purpose preprocessor with customizable syntax
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents