3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $original = str_repeat("hallo php",4096); $packed=gzcompress($original, -1, PHP_ZLIB_ENCODING_RAW); echo strlen($packed)." ".strlen($original)."\n";
Output for 7.0.0 - 7.1.0
Notice: Use of undefined constant PHP_ZLIB_ENCODING_RAW - assumed 'PHP_ZLIB_ENCODING_RAW' in /in/aOa8S on line 4 Warning: gzcompress() expects parameter 3 to be integer, string given in /in/aOa8S on line 4 0 36864
Output for 5.0.0 - 5.3.29, hhvm-3.10.0 - 3.12.0
Notice: Use of undefined constant PHP_ZLIB_ENCODING_RAW - assumed 'PHP_ZLIB_ENCODING_RAW' in /in/aOa8S on line 4 Warning: gzcompress() expects at most 2 parameters, 3 given in /in/aOa8S on line 4 0 36864
Output for 5.4.0 - 5.6.28
Notice: Use of undefined constant PHP_ZLIB_ENCODING_RAW - assumed 'PHP_ZLIB_ENCODING_RAW' in /in/aOa8S on line 4 Warning: gzcompress() expects parameter 3 to be long, string given in /in/aOa8S on line 4 0 36864
Output for 4.3.0 - 4.4.9
Notice: Use of undefined constant PHP_ZLIB_ENCODING_RAW - assumed 'PHP_ZLIB_ENCODING_RAW' in /in/aOa8S on line 4 Warning: Wrong parameter count for gzcompress() in /in/aOa8S on line 4 0 36864