3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php header('Content-Type: text/plain'); $source = 'Hello World!'; $gz = addslashes(gzdeflate($source,9)); $a = "\$var='"; $b = "'; echo gzinflate(stripslashes(\$var));"; echo $a.$gz.$b, "\n"; eval($a.$gz.$b);
based on 1ghi6
Output for 4.3.0 - 4.3.8, 4.3.10 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
$var='�H���W�/�IQ\0'; echo gzinflate(stripslashes($var)); Hello World!
Output for 4.3.9
$var='�H���W�/�IQ\'; echo gzinflate(stripslashes($var)); Hello World!