PHP formatting with Prettier
Select PHP, paste your script (including <?php when needed), choose tab width (2 or 4 spaces), and click Format. The tool runs Prettier’s standalone formatter with the official @prettier/plugin-php parser, using a 100-character print width. Everything executes in your browser bundle after the page loads — no extra download step for PHP.
Python formatting with Black and Pyodide
Select Python, set line length to 88 (Black’s default), 100, or 120, paste your module or snippet, and click Format. The page loads the Pyodide WebAssembly runtime from jsDelivr, installs micropip, then installs Black from PyPI on first use. Black’s format_str runs inside Pyodide with a matching line_length mode. The first Python format can take a minute and requires an open network path to the Pyodide CDN and package mirrors; later runs reuse the cached runtime in the tab.
Outputs
Successful runs show formatted code in the output panel with a line count. Use Copy or Download to save snippet.php or snippet.py. Load sample inserts a tiny example for the active language. Clear wipes input, output, status, and cancels an in-flight Python format.
Privacy and network
Your source is not uploaded to Dynamic Duniya servers. PHP formatting never leaves your machine beyond the JavaScript that already loaded the page. Python formatting runs entirely inside WebAssembly in your browser; Pyodide and Black are fetched from public CDNs (for example jsDelivr and PyPI via micropip). Do not paste secrets you cannot risk exposing to memory in the tab or to third-party package hosts during install.