3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function xor_encrypt($in) { $key = '<censored>'; $text = $in; $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } $my_data = array( "showpassword"=>"yes", "bgcolor"=>"#ffffff"); $my_data_e = xor_encrypt("111"); $my_data_e = xor_encrypt(my_data_e); echo $my_data_e;
Output for 4.3.0 - 7.1.0
Notice: Use of undefined constant my_data_e - assumed 'my_data_e' in /in/B47RZ on line 20 Q: :