3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); ini_set("display_errors",1); // true var_dump(in_array('zlib', get_loaded_extensions())); // true var_dump(in_array('gzcompress', get_extension_funcs('zlib')) ); // true var_dump(function_exists('gzcompress')); // true var_dump(is_callable('gzcompress')); // and the problem call // no output here, no message in apache log, not even system log, // no error/warning/notice/etc var_dump(gzcompress('some string test')); // dont get to this part var_dump('end line'); ?>
Output for 4.3.0 - 7.2.0
bool(true) bool(true) bool(true) bool(true) string(24) "x�+��MU(.)��KW(I-.5�L" string(8) "end line"