3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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"; ?>
based on vRS5P
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: cfg in /in/QM5n3 on line 15
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: cfg in /in/QM5n3 on line 15