3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $base16Alphabet = 'abcdefghijklmnop'; $hash = "\x01\x23\x45\x67\x89\xAB\xCD\xEF\x01\x23\x45\x67\x89\xAB\xCD\xEF"; $result = ''; for ($i = 0; $i < 16; $i++) { $byte = ord($hash[$i]); $result .= $base16Alphabet[$byte & 0xF0 >> 4] . $base16Alphabet[$byte & 0x0F]; } echo $result;
Output for 4.3.0 - 5.6.22, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
bbddffhhjjllnnppbbddffhhjjllnnpp