1 2 3 4 5
<?php $s1 = 'FF'; $s2 = 'EF'; $x = dechex(hexdec($s1) ^ hexdec($s2)); var_dump($x);
1
string(2) "10"