3v4l.org

run code in 150+ 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 - 5.6.28, 7.0.0 - 7.1.0
bool(true) bool(true) bool(true) bool(true) string(24) "x�+��MU(.)��KW(I-.5�L" string(8) "end line"
Output for hhvm-3.10.0 - 3.12.0
bool(true) Fatal error: f_get_extension_funcs is not supported: extensions are built differently in /in/v46WU on line 9
Process exited with code 255.