3v4l.org

run code in 300+ PHP versions simultaneously
<?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)); ?>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Lenght original string: 180 Parse error: syntax error, unexpected identifier "��4HLJNIMK��������" in /in/Mjneu(15) : eval()'d code on line 1
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
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.5.24 - 5.5.35, 5.6.8 - 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

preferences:
214.13 ms | 402 KiB | 229 Q