3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mustget = 'Kw4SCQ=='; $string = 'Josh'; echo("Must get: " . $mustget . "\n"); echo("We got: " . base64_encode(xor_this($string)) . "\n"); function xor_this($text) { $key = 'frtkj'; $i = 0; $encrypted = ''; foreach (str_split($text) as $char) { $encrypted .= $char ^ $key{$i++ % strlen($key)}; } return $encrypted; } ?>

This is an error 404

There are `0` results


preferences:
150.05 ms | 1399 KiB | 7 Q