For a full comparison of minifiers, jump to https://methodfish.com/Articles/minifiers

phpclasses9865 (adjusted to work with php8+)

This is a demonstration of the css minifier using phpclasses9865 (adjusted to work with php8+) class

Input css:

Output:

@keyframes animating{0%{top:-50px;opacity:0;}4%{top:20px;opacity:1;}}input.admin[type='search']{width:calc(100% - 4px);;}.wrapper{grid-template-columns:185px 1fr 1fr;grid-template-rows:auto auto auto auto 1fr auto;grid-template-areas:"header  header header" "heading heading heading" "foot foot foot";}.rot{transform:rotate(-10deg);}.rot{padding:10px 10px 20px 20px;}@media screen and(max-width:1600px){.headlines,.sidebar{width:calc(100% - 40px)!important;background-color:black;color:#c98e8e;}}.rot{margin:0px;xcolor:red;}

Minify time: 0.0382 seconds; 524 bytes 51.37% of original size (from 1020 bytes).