3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = 'vmiac'; echo $data; $compressed = gzcompress($data); echo "\ngzip=["; $length = strlen($compressed); for ($i = 0; $i < $length; $i++) { if ($i == $length - 1) echo ord($compressed[$i])."]\n\n"; else echo ord($compressed[$i]).", "; } echo(base64_encode($compressed)) ?>
Output for 5.6.30, hhvm-3.15.4 - 3.22.0, 7.0.0 - 7.2.9
vmiac gzip=[120, 156, 43, 203, 205, 76, 76, 6, 0, 6, 103, 2, 17] eJwry81MTAYABmcCEQ==