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 $resut; } var_dump(strxor2('1', '2'));
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: resut in /in/I3jFD on line 11 NULL
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: resut in /in/I3jFD on line 11 NULL