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 qMr0m
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
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