3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo 'This is a test'; $compressed = gzcompress('This is a test'); echo '\n\n\n'; for ($i=0; $i<strlen($compressed); $i++) { echo '['.$i.'] = '.ord($compressed[$i]).'\n'; } ?>
Output for 5.6.30, hhvm-3.15.4 - 3.22.0, 7.0.0 - 7.3.0rc3
This is a test\n\n\n[0] = 120\n[1] = 156\n[2] = 11\n[3] = 201\n[4] = 200\n[5] = 44\n[6] = 86\n[7] = 0\n[8] = 162\n[9] = 68\n[10] = 133\n[11] = 146\n[12] = 212\n[13] = 226\n[14] = 18\n[15] = 0\n[16] = 36\n[17] = 115\n[18] = 4\n[19] = 246\n