3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<? $key= '10.92.1.104' $data='tiger'; function xor_encrypt($in) { $text = $in; $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } $key=xor_encrypt($data); echo xor_encrypt(array( "showpassword"=>"yes", "bgcolor"=>"#ffffff")); ?>
based on ce0Q5
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.0 - 5.4.32
<? $key= '10.92.1.104' $data='tiger'; function xor_encrypt($in) { $text = $in; $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } $key=xor_encrypt($data); echo xor_encrypt(array( "showpassword"=>"yes", "bgcolor"=>"#ffffff")); ?>