PHP Formatter
Rescale your PHP code's indentation to a consistent width, live as you type.
Honest about what this does: it rescales your existing indentation to a consistent width — it doesn't parse PHP, so it can't fix code that isn't already consistently nested. For a full PSR-12 formatter, use a tool like PHP-CS-Fixer locally. Runs entirely in your browser.
What is PHP Formatter?
Paste PHP code with inconsistent indentation and this tool re-expresses it at a consistent 2 or 4 spaces, preserving the nesting already present. Honest about its limits: this doesn't parse PHP, so for full PSR-12 formatting, use a tool like PHP-CS-Fixer locally.
FAQ
No — it only rescales indentation width. It doesn't touch brace placement, spacing around operators, or any other style rule.
No, it doesn't parse PHP at all, so it can't detect syntax errors — it just re-indents whatever structure your code's whitespace already shows.