Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- gzcompress()/gzuncompress() --EXTENSIONS-- zlib --FILE-- <?php $original = str_re..
Decoded Output download
--TEST--
gzcompress()/gzuncompress()
--EXTENSIONS--
zlib
--FILE--
<?php
$original = str_repeat("hallo php",4096);
$packed=gzcompress($original);
echo strlen($packed)." ".strlen($original)."
";
$unpacked=gzuncompress($packed);
if (strcmp($original,$unpacked)==0) echo "Strings are equal
";
/* with explicit compression level, length */
$original = str_repeat("hallo php",4096);
$packed=gzcompress($original, 9);
echo strlen($packed)." ".strlen($original)."
";
$unpacked=gzuncompress($packed, 40000);
if (strcmp($original,$unpacked)==0) echo "Strings are equal
";
?>
--EXPECT--
106 36864
Strings are equal
106 36864
Strings are equal
Did this file decode correctly?
Original Code
--TEST--
gzcompress()/gzuncompress()
--EXTENSIONS--
zlib
--FILE--
<?php
$original = str_repeat("hallo php",4096);
$packed=gzcompress($original);
echo strlen($packed)." ".strlen($original)."\n";
$unpacked=gzuncompress($packed);
if (strcmp($original,$unpacked)==0) echo "Strings are equal\n";
/* with explicit compression level, length */
$original = str_repeat("hallo php",4096);
$packed=gzcompress($original, 9);
echo strlen($packed)." ".strlen($original)."\n";
$unpacked=gzuncompress($packed, 40000);
if (strcmp($original,$unpacked)==0) echo "Strings are equal\n";
?>
--EXPECT--
106 36864
Strings are equal
106 36864
Strings are equal
Function Calls
str_repeat | 1 |
Stats
MD5 | 467628d4371f70c8c151df1eec73e7c9 |
Eval Count | 0 |
Decode Time | 128 ms |