- mt_rand: documentation ( source)
- str_repeat: documentation ( source)
- json_encode: documentation ( source)
- gzcompress: documentation ( source)
<?php
$val = [str_repeat(mt_rand(), 30)];
echo strlen(json_encode($val)); echo "\n";
echo strlen(gzcompress(json_encode($val)));