3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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 = str_repeat('1234567890'.implode('',range('a','z')),5); /* $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 = eval(gzdeflate($string, 9)); //$compressed = gzdeflate($compressed, 9); echo ' Lenght compresed string: '.strlen($compressed);//99 bytes //echo $string //echo gzinflate(gzinflate($compressed)); ?>
based on f6oKQ
Output for 7.0.0 - 7.2.0
Lenght original string: 180 Parse error: syntax error, unexpected '��4HLJNIMK��������' (T_STRING) in /in/Mjneu(15) : eval()'d code on line 1
Process exited with code 255.
Output for 5.4.12 - 5.6.28
Lenght original string: 180 Parse error: syntax error, unexpected '��4HLJNIMK��������' (T_STRING) in /in/Mjneu(15) : eval()'d code on line 1 Lenght compresed string: 0
Output for 5.3.22 - 5.3.29
Lenght original string: 180 Parse error: syntax error, unexpected T_STRING in /in/Mjneu(15) : eval()'d code on line 1 Lenght compresed string: 0
Process exited with code 255.