How to use PHP Formatter
- Paste your code. The formatter engine loads in a moment the first time.
- Adjust the options if you need to.
- Copy the formatted result.
About PHP Formatter
This formatter parses your PHP and prints it back in a tidy, consistent style: indentation, spacing around operators, one statement per line and wrapped long argument lists. Modern syntax such as arrow functions, match expressions, enums and attributes is supported.
The engine loads the first time you use the page, which takes a moment. After that it runs locally.