<?php

if (isset($_POST['str'])) {

    
$OriginalString=$_POST['str'];
    
$Decoded=gzinflate(base64_decode($OriginalString));

    while (
preg_match_all('/eval.*\(\'(.*)\'\)/',$Decoded,$res)) {
        
$OriginalString=$res[1][0];
        
$gzinflate=preg_match('/gzinflate\(/',$Decoded);
        
$str_rot=preg_match('/str_rot/',$Decoded);
        
$base64_decode=preg_match('/base64_decode/',$Decoded);
        
        if (
$base64_decode$Decoded=base64_decode($OriginalString);
        if (
$str_rot$Decoded=str_rot13($Decoded);
        if (
$gzinflate$Decoded=gzinflate($Decoded);
    }
    echo 
'<textarea rows="30" cols="100">'.$Decoded.'</textarea>';


} else {
    echo 
'<form action="" method="post">';
    echo 
'<label for="str">Chaine &agrave; d&eacute;coder</label><br /><textarea name="str" rows="30" cols="80"></textarea><br /><br />';
    echo 
'<input type="submit" />';    
    echo 
'</form>';

}

?>