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, PHP_EOL; eval($a.$gz.$b);
based on 7tSBa
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.1.0
$var='�H���W�/�IQ\0'; echo gzinflate(stripslashes($var)); Hello World!
Output for 4.3.0 - 4.3.8, 5.0.0 - 5.0.1
$var='�H���W�/�IQ\0'; echo gzinflate(stripslashes($var)); Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1ghi6 on line 10 PHP_EOLHello World!
Output for 4.3.9
$var='�H���W�/�IQ\'; echo gzinflate(stripslashes($var)); Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1ghi6 on line 10 PHP_EOLHello World!