3v4l.org

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