Back to Tools
PHP Minifier
PHP Minifier
Compress PHP code for deployment by stripping non-functional characters
PHP Tool
Minified Output
About the PHP Minifier
Remove comments and extra whitespace from PHP code.
How to use the PHP Minifier
- Paste your code into the input box, or click Load Sample to load an example.
- Press Minify PHP.
- Use Copy (or Download where shown) to keep the result. Clear empties the box.
Tips
- Keep the original source. Minified PHP is hard to maintain and gives only a small speed gain.
Frequently Asked Questions
The gain is tiny. Use OPcache for real performance improvements.