3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function xor_this($string) { // Let's define our key here $key = adeabecc; // Our plaintext/ciphertext $text =$string; // Our output text $outText = ''; // Iterate through each character $outText = $text ^ $key; //echo 'i='.$i.', '.'j='.$j.', '.$outText{$i}.'<br />'; //for debugging return $outText; } echo xor_this("adeabecc"); //echo xor_this(12341234);
based on R8Z9n
Output for 7.2.0 - 7.3.0alpha1
Warning: Use of undefined constant adeabecc - assumed 'adeabecc' (this will throw an Error in a future version of PHP) in /in/rAEfp on line 6
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.1.7
Notice: Use of undefined constant adeabecc - assumed 'adeabecc' in /in/rAEfp on line 6