3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function decodeHeader($header) { $charset = 'UTF-8'; //$decoded = iconv_mime_decode($header, ICONV_MIME_DECODE_STRICT, $charset); $decoded = mb_decode_mimeheader($header); return $decoded; } $header = '=?utf-8?Q?=D0=90=D0=BA=D1=82=D0=B8=D0=B2=D0=B0=D1=86=D0=B8=D1=8F=20=D1=83=D1=87=D0=B5=D1=82=D0=BD=D0=BE=D0=B9=20=D0=B7=D0=B0=D0=BF=D0=B8=D1=81=D0=B8?='; var_dump(decodeHeader($header));
Output for 5.6.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(46) "Активация учетной записи"
Output for 4.3.3 - 5.5.35
string(24) "????????? ??????? ??????"
Output for 4.3.0 - 4.3.2
string(24) ":B820F8O CG5B=>9 70?8A8"