3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ini_set('zlib.output_compression', '1'); ob_start(); echo("CUCU"); $output = ob_get_contents(); echo($output); ini_set('zlib.output_compression', '2'); //ob_end_clean(); ob_end_flush();
Output for 4.3.0 - 5.3.29, 5.4.4 - 5.6.30, hhvm-3.10.1 - 3.17.3, 7.0.0 - 7.2.0
CUCUCUCU
Output for 5.4.0 - 5.4.3
CUCUCUCU Warning: ini_set(): Cannot enable zlib.output_compression - there has already been output in /in/28Enm on line 8