3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = ''; $data = json_decode(array("showpassword"=>"no", "bgcolor"=>"#ffffff")); $dec = base64_decode("HmYkBwozJw4WNyAAFyB1VUcqOE1JZjUIBis7ABdmbU1GIjEJAyIxTRg="); //data^key = dec for($i=0;$i<strlen($data);$i++){ $key .= $data[$i] ^ $dec[$i % strlen(%dec)]; } echo $key;
Output for 8.2.0 - 8.2.27, 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
Parse error: syntax error, unexpected token "%" in /in/esqFK on line 9
Process exited with code 255.

preferences:
151.73 ms | 950 KiB | 7 Q