3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = base64_decode('AQAB'); $b = mb_convert_encoding( 'AQAB', "UTF-8", "BASE64" ); var_dump(bin2hex($a)); var_dump(bin2hex($b));
Output for 4.3.0 - 7.1.0
string(6) "010001" string(6) "010001"