3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php /** * Created BY 独自等待 * Date : 13-6-25 * Time : 下午2:06 * FileName : decode_gzinflate.php * 欢迎访问独自等待博客www.waitalone.cn */ //已经加密的文件内容 $a = "eval(gzinflate(base64_decode('/Td6WFoAAATm1rRGAgAhARYAAAB0L+Wj4AFRAQVdABGICqfJeJWaXR0sjwRpdS7E +6IpZ7jEgwnjNXF1I+Am53CER4uNimC3eWr2cLkUF4wS790hhcFJDPibD3E6vykU wfVcZtkxf49xh2iethSwFIx3fmnT/Qzol3c2NzHNLm08op6oj6c6IymXQoTGUfjt QMm4Q8yuiGCX2iLAqUsg/SFnJNb1G4QuOWCVZSQwrNnHoZnAsJjXKdxW82xVSI5H T2GH19HrQWj7mAIv2hEG7rHr7Lvc5KrtVPN4+jGZQPbvWM4Mh+Sjx/wTyxQ14MW/ FgSVKDir3PXIfM3/4bPggO6EQc3KOgNzQl+E5ePAoI0wNh+KEohXqYVt4giRNm52 ypAgAAAAAAC8TejHH4hG6QABoQLSAgAAiuAM5LHEZ/sCAAAAAARZWg==')));"; function decodephp($a) { $max_level = 300; //最大层数 for ($i = 0; $i < $max_level; $i++) { ob_start(); eval(str_replace('eval', 'echo', $a)); $a = ob_get_clean(); if (strpos($a, 'eval(gzinflate(base64_decode') === false) { return $a; } } } echo decodephp($a); ?>
based on 17Ih8
Output for 7.0.20, 7.1.5 - 7.2.0
Warning: gzinflate(): data error in /in/7QsUF(22) : eval()'d code on line 1
Output for 4.3.2 - 7.0.6, 7.1.0
Warning: gzinflate(): data error in /in/7QsUF(22) : eval()'d code on line 7
Output for 4.3.0 - 4.3.1
Warning: gzinflate() [http://www.php.net/function.gzinflate]: data error in /in/7QsUF(22) : eval()'d code on line 7