3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'Hello I am a very very very very long stringfdgfg dgd gdfg dgd gdg gf dgf dgd gdg dgd gdfgdfgd dgd g gdgdg dfgdfgg'; $compressed = gzcompress($str, 1); $uncompressed = gzuncompress($compressed); echo $str, "\n"; echo $uncompressed, "\n"; echo base64_encode($compressed), "\n"; echo bin2hex($compressed), "\n"; echo urlencode($compressed), "\n";
based on taTsF
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
Hello I am a very very very very long stringfdgfg dgd gdfg dgd gdg gf dgf dgd gdg dgd gdfgdfgd dgd g gdgdg dfgdfgg Hello I am a very very very very long stringfdgfg dgd gdfg dgd gdg gf dgf dgd gdg dgd gdfgdfgd dgd g gdgdg dfgdfgg eAFdylEKgDAMA9Cr5Dh6jEHWINQN5hC8vS2Cgh8N4aVLde9YUXYUnHVc//DehGOOrckoEyhCfIsgC8tL//Z44YPJOQSYdAP+KCfp 78015dca510a80300c03d0abe4387a8c41d620d40de610bcbd2d82821f0de1a54b75ef585176149c755cfff0de84638eadc9281328427c8b200bcb4bfff678e183c93904987403fe2827e9 x%01%5D%CAQ%0A%800%0C%03%D0%AB%E48z%8CA%D6+%D4%0D%E6%10%BC%BD-%82%82%1F%0D%E1%A5Ku%EFXQv%14%9Cu%5C%FF%F0%DE%84c%8E%AD%C9%28%13%28B%7C%8B+%0B%CBK%FF%F6x%E1%83%C99%04%98t%03%FE%28%27%E9