3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = 'hello'; $r = deflate_init(ZLIB_ENCODING_GZIP); $out = deflate_add($r, $data, \ZLIB_FINISH); var_dump($data, $out);
Output for 7.0.0 - 7.2.0
string(5) "hello" string(25) "��H�����6"
Output for 5.3.19 - 5.6.28
Fatal error: Call to undefined function deflate_init() in /in/6ZOv6 on line 4
Process exited with code 255.