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-- zlib.deflate (with convert.base64-encode) --EXTENSIONS-- zlib --FILE-- <?php $tex..

Decoded Output download

--TEST--
zlib.deflate (with convert.base64-encode)
--EXTENSIONS--
zlib
--FILE--
<?php
$text = 'I am the very model of a modern major general, I\'ve information vegetable, animal, and mineral.';

$fp = fopen('php://stdout', 'w');
stream_filter_append($fp, 'zlib.deflate', STREAM_FILTER_WRITE);
stream_filter_append($fp, 'convert.base64-encode', STREAM_FILTER_WRITE);
fwrite($fp, $text);
fclose($fp);

?>
--EXPECT--
HctBDoAgDETRq8zOjfEeHKOGATG0TRpC4u1Vdn/xX4IoxkVMxgP1zA4vkJVhULk9UGkM6TvSNolmxUNlNLePVQ45O3eINf0fsQxtCxwv

Did this file decode correctly?

Original Code

--TEST--
zlib.deflate (with convert.base64-encode)
--EXTENSIONS--
zlib
--FILE--
<?php
$text = 'I am the very model of a modern major general, I\'ve information vegetable, animal, and mineral.';

$fp = fopen('php://stdout', 'w');
stream_filter_append($fp, 'zlib.deflate', STREAM_FILTER_WRITE);
stream_filter_append($fp, 'convert.base64-encode', STREAM_FILTER_WRITE);
fwrite($fp, $text);
fclose($fp);

?>
--EXPECT--
HctBDoAgDETRq8zOjfEeHKOGATG0TRpC4u1Vdn/xX4IoxkVMxgP1zA4vkJVhULk9UGkM6TvSNolmxUNlNLePVQ45O3eINf0fsQxtCxwv

Function Calls

fopen 1

Variables

$fp True
$text I am the very model of a modern major general, I've informat..

Stats

MD5 aba9b4382182b40cf1562a631106be13
Eval Count 0
Decode Time 101 ms