3v4l.org

run code in 300+ PHP versions simultaneously
<?php function decrypt ($str) { if(preg_match('%^[a-zA-Z0-9/+]*={0,2}$%',$str)) { $str = base64_decode($str); if ($str != "" && $str != null && $str != false) { $decStr = ""; for ($i=0; $i < strlen($str); $i+=3) { $array[$i/3] = substr($str,$i,3); } foreach($array as $s) { // echo "s: " .$s. "\r\n"; $a = $s^192; // echo "a: " .$a . "\r\n"; $decStr .= chr($a); // echo "chr: " .$decStr . "\r\n\r\n"; } return $decStr."\r\n\r\n"; } return false; } return false; } echo decrypt("Admin"); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: Unsupported operand types: string ^ int in /in/DppEE:19 Stack trace: #0 /in/DppEE(31): decrypt('\x01\xD9\xA2') #1 {main} thrown in /in/DppEE on line 19
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
43.62 ms | 401 KiB | 8 Q