3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = McdgJXfwR; function string_cpt($String, $Password) { $Salt = vQfLb; $StrLen = strlen($String); $Seq = $Password; $Gamma = ''; while (strlen($Gamma) < $StrLen) { $Seq = pack('H*', sha1($Gamma . $Seq . $Salt)); $Gamma.= substr($Seq, 0, 8); } return $String ^ $Gamma; } $c = string_cpt(base64_decode($cfg), $key); print "$c"; ?>

preferences:
35.44 ms | 402 KiB | 5 Q