3v4l.org

run code in 200+ 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 qMr0m
Output for 7.2.0
Warning: Use of undefined constant McdgJXfwR - assumed 'McdgJXfwR' (this will throw an Error in a future version of PHP) in /in/vRS5P on line 3 Notice: Undefined variable: cfg in /in/vRS5P on line 15 Warning: Use of undefined constant vQfLb - assumed 'vQfLb' (this will throw an Error in a future version of PHP) in /in/vRS5P on line 5
Output for 5.0.4 - 7.1.10
Notice: Use of undefined constant McdgJXfwR - assumed 'McdgJXfwR' in /in/vRS5P on line 3 Notice: Undefined variable: cfg in /in/vRS5P on line 15 Notice: Use of undefined constant vQfLb - assumed 'vQfLb' in /in/vRS5P on line 5
Output for 4.3.0 - 5.0.3
Notice: Use of undefined constant McdgJXfwR - assumed 'McdgJXfwR' in /in/vRS5P on line 3 Notice: Undefined variable: cfg in /in/vRS5P on line 15 Notice: Use of undefined constant vQfLb - assumed 'vQfLb' in /in/vRS5P on line 5