<?php
$string = '{"H":[{"f": "FR100400061","d": "2016-01-25T12:17:57","i": "80222557","n": "El gio gonzales","s": 1,"CustAccount": "1004","c":"Court de Tennis","m":"1008","mn":"Wide World Importers","d":"frrt","cb": "123","cd": "2016-01-25T12:17:57"}],"L": [{"i": "IVA21","f": "","n": "Zapatitos","tv": 123.0,"txv": 21.35,"bv": 101.65,"f":"FR100400061","rv": 13.0,"d": "frrt"}],"T":[{"t":"80222557","e":"garanda21@gmail.com","n":"El gio gonzales","c": "PE","cn": "Peru","a":"Calle de abaja bien abajo","g": 1,"b":"23/12/1982"}]}';
$string = '"FR100400061"';
/*
$str = "sample data";
$bzstr = bzcompress($string, 9);
echo $bzstr;*/
//$string = str_repeat('1234567890'.implode('',range('a','z')),48800);
echo "Lenght original string: " . strlen($string);//1756800 bytes
$compressed = gzdeflate($string, 9);
//$compressed = gzdeflate($compressed, 9);
echo ' Lenght compresed string: '.strlen($compressed);//99 bytes
//echo $string
//echo gzinflate(gzinflate($compressed));
?>
- Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.7, 7.2.29 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
- Lenght original string: 13 Lenght compresed string: 15
preferences:
144.93 ms | 404 KiB | 181 Q