- addslashes: documentation ( source)
- header: documentation ( source)
- gzdeflate: documentation ( source)
<?php
header('Content-Type: text/plain');
$source = 'Hello World!';
$gz = addslashes(gzdeflate($source,9));
$a = "\$var='";
$b = "'; echo gzinflate(stripslashes(\$var));";
echo $a.$gz.$b, PHP_EOL;
eval($a.$gz.$b);