3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function hexbin($temp) { $data=""; $len = strlen($temp); for ($i=0;$i<$len;$i+=2) $data.=chr(hexdec(substr($temp,$i,2))); return $data; } var_dump( base64_encode(hexbin(sha1('4ly5ccc64ln8n581.0.1I0110DQX563status'))) ); var_dump( urlencode(base64_encode(hexbin(sha1('4ly5ccc64ln8n581.0.1I0110DQX563status')))) );
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(28) "8lrmOiqMprz24RP/dPYapcdfAhk=" string(32) "8lrmOiqMprz24RP%2FdPYapcdfAhk%3D"