3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.0.0 - 8.0.30, 8.1.0 - 8.1.29, 8.2.0 - 8.2.23, 8.3.0 - 8.3.11
string(24) "iuuqr;..mhoj/`c`xj`o/bnl" string(24) "https://link.abaykan.com" Warning: Undefined variable $mangle in /in/grn9k on line 16 Fatal error: Uncaught Error: Value of type null is not callable in /in/grn9k:16 Stack trace: #0 {main} thrown in /in/grn9k on line 16
Process exited with code 255.
Output for 7.2.3, 7.3.24 - 7.3.31, 7.4.12 - 7.4.33
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.
Output for 7.3.32 - 7.3.33
string(24) "iuuqr;..mhoj/`c`xj`o/bnl" string(24) "https://link.abaykan.com" 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.

preferences:
75.59 ms | 409 KiB | 5 Q