jsonecho

Formateador de PHP

Formatea PHP para que sea legible.

Cargando la herramienta...

Cómo usar Formateador de PHP

  1. Pega el PHP.
  2. Copia el resultado.

Sobre Formateador de PHP

Aplica indentación y formato consistente a PHP.

Preguntas frecuentes

Does it follow PSR-12?

It follows a style close to PSR-12, with 4 spaces, though it is not a PSR-12 compliance checker.

Does it run my PHP?

No. The code is parsed as text. Nothing is executed and nothing is sent to a server.

Which PHP versions are supported?

Syntax up to a recent PHP 8 release is understood. Very new syntax may not be covered yet.

Does it need the opening tag?

Start with <?php. Without it the text is treated as plain HTML output.

Why did the first run take a second?

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.

Más en Formateadores de código

Todas las herramientas →