3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $compressed = gzdeflate('Compress me', 9); echo $compressed; $bzstr = bzcompress($start_str); echo "Compressed String: "; echo $bzstr; echo "\n<br />\n"; $str = bzdecompress($bzstr); echo "Decompressed String: "; echo $str; echo "\n<br />\n"; $compressed = gzdeflate('Compress me', 9); echo $compressed;
Output for 7.0.0 - 7.1.0
s��-(J-.V�M Fatal error: Uncaught Error: Call to undefined function bzcompress() in /in/4eSW4:4 Stack trace: #0 {main} thrown in /in/4eSW4 on line 4
Process exited with code 255.
Output for hhvm-3.12.0
s��-(J-.V�M Notice: Undefined variable: start_str in /in/4eSW4 on line 4 Warning: bzcompress() expects parameter 1 to be string, null given in /in/4eSW4 on line 4 Compressed String: <br /> Warning: bzdecompress() expects parameter 1 to be string, null given in /in/4eSW4 on line 10 Decompressed String: <br /> s��-(J-.V�M
Output for hhvm-3.10.0
s��-(J-.V�M Notice: Undefined variable: start_str in /in/4eSW4 on line 4 Compressed String: BZh4rE8P� <br /> Decompressed String: <br /> s��-(J-.V�M
Output for 5.0.0 - 5.6.28
s��-(J-.V�M Fatal error: Call to undefined function bzcompress() in /in/4eSW4 on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
s��-(J-.V�M Fatal error: Call to undefined function: bzcompress() in /in/4eSW4 on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
s��-(J-.V�M Fatal error: Call to undefined function: bzcompress() in /in/4eSW4 on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
s��-(J-.V�M Fatal error: Call to undefined function: bzcompress() in /in/4eSW4 on line 4