3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = "Lorem ipsum shizzle ma nizle"; echo "\n\n\n"; echo (((gzcompress($data)))) . PHP_EOL . PHP_EOL; echo "\n\n\n"; echo (((gzdeflate($data,$i)))) . PHP_EOL . PHP_EOL; echo "\n\n\n"; echo (((gzencode($data,$i,FORCE_GZIP)))) . PHP_EOL . PHP_EOL; echo "\n\n\n"; echo (((gzencode($data,$i,FORCE_DEFLATE)))) . PHP_EOL . PHP_EOL; echo "\n\n\n";
based on P0G8K
Output for 5.4.0 - 7.2.6
x���/J�U�,(.�U(�Ȭ��IU�MT��2�? � Notice: Undefined variable: i in /in/3Q8fi on line 7 �Lorem ipsum shizzle ma nizle Notice: Undefined variable: i in /in/3Q8fi on line 9 ��Lorem ipsum shizzle ma nizle��% Notice: Undefined variable: i in /in/3Q8fi on line 11 x�Lorem ipsum shizzle ma nizle�? �
Output for 5.0.4 - 5.3.29
x���/J�U�,(.�U(�Ȭ��IU�MT��2�? � Notice: Undefined variable: i in /in/3Q8fi on line 7 �Lorem ipsum shizzle ma nizle Notice: Undefined variable: i in /in/3Q8fi on line 9 ��Lorem ipsum shizzle ma nizle��% Notice: Undefined variable: i in /in/3Q8fi on line 11 �x�Lorem ipsum shizzle ma nizle�? �
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.0.3
x���/J�U�,(.�U(�Ȭ��IU�MT��2�? � Notice: Undefined variable: i in /in/3Q8fi on line 7 �Lorem ipsum shizzle ma nizle Notice: Undefined variable: i in /in/3Q8fi on line 9 ��Lorem ipsum shizzle ma nizle��% Notice: Undefined variable: i in /in/3Q8fi on line 11 �x�Lorem ipsum shizzle ma nizle�? �
Output for 4.3.2 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3Q8fi on line 5 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3Q8fi on line 5 x���/J�U�,(.�U(�Ȭ��IU�MT��2�? �PHP_EOLPHP_EOL Notice: Undefined variable: i in /in/3Q8fi on line 7 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3Q8fi on line 7 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3Q8fi on line 7 �Lorem ipsum shizzle ma nizlePHP_EOLPHP_EOL Notice: Undefined variable: i in /in/3Q8fi on line 9 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3Q8fi on line 9 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3Q8fi on line 9 ��Lorem ipsum shizzle ma nizle��%PHP_EOLPHP_EOL Notice: Undefined variable: i in /in/3Q8fi on line 11 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3Q8fi on line 11 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3Q8fi on line 11 �x�Lorem ipsum shizzle ma nizle�? �PHP_EOLPHP_EOL
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3Q8fi on line 5 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3Q8fi on line 5 x���/J�U�,(.�U(�Ȭ��IU�MT��2�? �PHP_EOLPHP_EOL Notice: Undefined variable: i in /in/3Q8fi on line 7 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3Q8fi on line 7 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3Q8fi on line 7 �Lorem ipsum shizzle ma nizlePHP_EOLPHP_EOL Notice: Undefined variable: i in /in/3Q8fi on line 9 Warning: gzencode() [http://www.php.net/function.gzencode]: stream error in /in/3Q8fi on line 9 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3Q8fi on line 9 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3Q8fi on line 9 PHP_EOLPHP_EOL Notice: Undefined variable: i in /in/3Q8fi on line 11 Warning: gzencode() [http://www.php.net/function.gzencode]: stream error in /in/3Q8fi on line 11 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3Q8fi on line 11 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3Q8fi on line 11 PHP_EOLPHP_EOL