3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $xor = function ($str, $key = 1) { for ($i = 0; $i < strlen($str); $i++) { $str[$i] = chr(ord($str[$i]) ^ $key); } return $str; }; $enc = $xor("https://link.abaykan.com"); $dec = $xor($enc); var_dump($enc); var_dump($dec); $mangleed = $mangle(str_split('https://link.abaykan.com')); $unmangleed = $mangle($mangleed); print_r($unmangleed);
Output for 7.2.3
string(24) "iuuqr;..mhoj/`c`xj`o/bnl" string(24) "https://link.abaykan.com" Notice: Undefined variable: mangle in /in/grn9k on line 16 Fatal error: Uncaught Error: Function name must be a string in /in/grn9k:16 Stack trace: #0 {main} thrown in /in/grn9k on line 16
Process exited with code 255.