3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'Hello I am a very very very very long stringHello I am a very very very very long stringHello I am a very very very very long stringHello I am a very very very very long stringHello I am a very very very very long stringHello I am a very very very very long stringHello I am a very very very very long string'; $compressed = gzcompress($str, 9); $uncompressed = gzuncompress($compressed); echo $str, "\n"; echo $uncompressed, "\n"; echo base64_encode($compressed), "\n"; echo bin2hex($compressed), "\n"; echo urlencode($compressed), "\n";