3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /* mb_internal_encoding('ISO-8859-1'); echo 'Subject: ', mb_decode_mimeheader('=?ISO-8859-1?B?0JTQvtCx0LDQstC70LXQvSDQvdC+0LLRi9C5INC60L4=?= =?ISO-8859-1?B?0LzQvNC10L3RgtCw0YDQuNC5INC6INC30LDQv9C40YHQuDogIns=?= =?ISO-8859-1?B?UEFHRV9USVRMRX0i?='); */ $name = 'Добавлен новый комментарий к записи: "{PAGE_TITLE}"'; $mbox = "kru"; $doma = "gtinn.mon"; $addr = mb_encode_mimeheader($name, "ISO-8859-1", "B"); echo $addr;
based on EJXBm
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/Pz8/Pz8gPz8/Pz8gPz8/Pz8/Pz8/Pz8gPyA/Pz8/Pz86ICJ7UEFH?= =?ISO-8859-1?B?RV9USVRMRX0i?=
Output for 4.3.0 - 5.5.35
=?ISO-8859-1?B?0JTQvtCx0LDQstC70LXQvSDQvdC+0LLRi9C5INC60L7QvNC80LXQvdGC?= =?ISO-8859-1?B?0LDRgNC40Lkg0Log0LfQsNC/0LjRgdC4OiAie1BBR0VfVElUTEV9Ig==?=