3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xor_encrypt($in) { $key = '<censored>'; $text = $in; $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } $tempdata = json_decode(xor_encrypt(base64_decode($_COOKIE["data"])), true); print $tempdata print $decodedSecret;
Output for 5.4.0 - 5.4.22
Parse error: syntax error, unexpected 'print' (T_PRINT) in /in/mBfUf on line 62
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_PRINT in /in/mBfUf on line 62
Process exited with code 255.

preferences:
181.27 ms | 1395 KiB | 58 Q