PHP•Client-Side Processing
PHP Formatter
Format PHP scripts, PSR conventions, arrays, and classes with clean indentation.
Developer workbench
⌘ / Ctrl + Enter to runConfigure. Run. Inspect.
Runs locally. Inputs and results are not automatically saved.
77 input bytes
Output
How to Use PHP Formatter
01
Paste PHP code.
02
Click 'Format PHP'.
03
Copy clean code.
Frequently Asked Questions
Does it support <?php opening tags?
Yes, PHP tags and scripts are preserved.
Related Developer Tools
Explore more free client-side developer utilities in this category