3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo 'This is a test'; $compressed = gzencode('This is a test'); echo '<br>'; for ($i=0; $i<strlen($compressed); $i++) { echo '['.$i.'] = '.ord($compressed[$i]).'<br>'; } ?>
Output for 4.3.0 - 7.1.0
This is a test<br>[0] = 31<br>[1] = 139<br>[2] = 8<br>[3] = 0<br>[4] = 0<br>[5] = 0<br>[6] = 0<br>[7] = 0<br>[8] = 0<br>[9] = 3<br>[10] = 11<br>[11] = 201<br>[12] = 200<br>[13] = 44<br>[14] = 86<br>[15] = 0<br>[16] = 162<br>[17] = 68<br>[18] = 133<br>[19] = 146<br>[20] = 212<br>[21] = 226<br>[22] = 18<br>[23] = 0<br>[24] = 50<br>[25] = 159<br>[26] = 122<br>[27] = 192<br>[28] = 14<br>[29] = 0<br>[30] = 0<br>[31] = 0<br>