3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $original = 'online PHP shell, execute code in 100+ different PHP versions!online PHP shell, execute code in 100+ different PHP versions!online PHP shell, execute code in 100+ different PHP versions!online PHP shell, execute code in 100+ different PHP versions!online PHP shell, execute code in 100+ different PHP versions!'; $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/AM3LS on line 4 Warning: gzcompress() expects parameter 3 to be integer, string given in /in/AM3LS on line 4 0 310
Output for 5.4.0 - 5.6.28
Notice: Use of undefined constant PHP_ZLIB_ENCODING_RAW - assumed 'PHP_ZLIB_ENCODING_RAW' in /in/AM3LS on line 4 Warning: gzcompress() expects parameter 3 to be long, string given in /in/AM3LS on line 4 0 310
Output for 5.0.0 - 5.3.29
Notice: Use of undefined constant PHP_ZLIB_ENCODING_RAW - assumed 'PHP_ZLIB_ENCODING_RAW' in /in/AM3LS on line 4 Warning: gzcompress() expects at most 2 parameters, 3 given in /in/AM3LS on line 4 0 310
Output for 4.3.0 - 4.4.9
Notice: Use of undefined constant PHP_ZLIB_ENCODING_RAW - assumed 'PHP_ZLIB_ENCODING_RAW' in /in/AM3LS on line 4 Warning: Wrong parameter count for gzcompress() in /in/AM3LS on line 4 0 310