3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /* mb_internal_encoding('ISO-8859-1'); echo 'Subject: ', mb_decode_mimeheader('=?UTF-8?B?w5DCncOQwr7DkMKyw5HCi8OQwrkgw5DCssOQwr7DkMK/w5E=?= =?UTF-8?B?woDDkMK+w5HCgSDDkMK9w5DCsCDDkcKBw5DCsMOQwrnDkcKCw5DCtSA=?= =?UTF-8?B?Y3JlZGl0Y2FyZHNvbmxpbmUucnU=?='); */ $name = 'Новый вопрос на сайте ff.ru'; $addr = mb_encode_mimeheader($name, "ISO-8859-1", "B"); echo $addr;
based on h6UvV
Output for 5.6.8 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
=?ISO-8859-1?B?Pz8/Pz8gPz8/Pz8/ID8/ID8/Pz8/IGZmLnJ1?=
Output for 4.3.0 - 5.5.35
=?ISO-8859-1?B?0J3QvtCy0YvQuSDQstC+0L/RgNC+0YEg0L3QsCDRgdCw0LnRgtC1IGZm?= =?ISO-8859-1?B?LnJ1?=