3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function strxor2($rhs, $lhs) { $result = ''; for ($i = 0; $i < strlen($rhs); $i++) { $result .= chr(ord($rhs[$i]) ^ ord($lhs[$i])); } return $result; } var_dump(strxor2('1', '2'));
based on I3jFD
Output for 4.3.0 - 7.2.0
string(1) ""