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", "Q"); echo $addr;
based on HsCNl
Output for 5.6.8 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
=?ISO-8859-1?Q?=3F=3F=3F=3F=3F=3F=3F=3F=20=3F=3F=3F=3F=3F=20=3F=3F=3F=3F?= =?ISO-8859-1?Q?=3F=3F=3F=3F=3F=3F=3F=20=3F=20=3F=3F=3F=3F=3F=3F=3A=20=22?= =?ISO-8859-1?Q?=7BPAGE=5FTITLE=7D=22?=
Output for 4.3.0 - 5.5.35
=?ISO-8859-1?Q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=20=D0=BD?= =?ISO-8859-1?Q?=D0=BE=D0=B2=D1=8B=D0=B9=20=D0=BA=D0=BE=D0=BC=D0=BC=D0=B5?= =?ISO-8859-1?Q?=D0=BD=D1=82=D0=B0=D1=80=D0=B8=D0=B9=20=D0=BA=20=D0=B7=D0?= =?ISO-8859-1?Q?=B0=D0=BF=D0=B8=D1=81=D0=B8=3A=20=22=7BPAGE=5FTITLE=7D=22?=