- chunk_split: documentation ( source)
- bin2hex: documentation ( source)
- strtoupper: documentation ( source)
- gzcompress: documentation ( source)
<?php
$data = "Lorem ipsum shizzle ma nizle";
echo "\n\n\n";
for($i=-1;$i<=9;$i++)
echo chunk_split(strtoupper(bin2hex(gzcompress($data,$i))),2," ") . PHP_EOL . PHP_EOL;