Cómo usar Formateador de PHP
- Pega el PHP.
- Copia el resultado.
Sobre Formateador de PHP
Aplica indentación y formato consistente a PHP.
Formatea PHP para que sea legible.
Aplica indentación y formato consistente a PHP.
It follows a style close to PSR-12, with 4 spaces, though it is not a PSR-12 compliance checker.
No. The code is parsed as text. Nothing is executed and nothing is sent to a server.
Syntax up to a recent PHP 8 release is understood. Very new syntax may not be covered yet.
Start with <?php. Without it the text is treated as plain HTML output.
The formatting engine for this language is downloaded the first time you use it, then cached by your browser. After that, formatting is instant and nothing leaves your machine.