3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "Prüfung Prüfung"; $preferences = array( "input-charset" => "ISO-8859-1", "output-charset" => "UTF-8", "line-length" => 150, "line-break-chars" => "\n" ); $preferences["scheme"] = "Q"; echo iconv_mime_encode("Subject", $string, $preferences); echo "\n\n"; echo mb_encode_mimeheader("Subject: $string", "UTF-8", "Q");
Output for 5.6.28, 7.0.14 - 7.1.0
Subject: =?UTF-8?Q?Pr=C3=83=C2=BCfung=20Pr=C3=83=C2=BCfung?= Subject: =?UTF-8?Q?Pr=C3=BCfung=20Pr=C3=BCfung?=
Output for 7.0.0 - 7.0.11
Fatal error: Uncaught Error: Call to undefined function iconv_mime_encode() in /in/GDZDN:11 Stack trace: #0 {main} thrown in /in/GDZDN on line 11
Process exited with code 255.
Output for 5.5.35 - 5.6.26
Fatal error: Call to undefined function iconv_mime_encode() in /in/GDZDN on line 11
Process exited with code 255.
Output for 5.0.0 - 5.5.34
Subject: =?UTF-8?Q?Pr=C3=83=C2=BCfung=20Pr=C3=83=C2=BCfung?= Subject: =?UTF-8?Q?Pr=C3=83=C2=BCfung=20Pr=C3=83=C2=BCfung?=
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: iconv_mime_encode() in /in/GDZDN on line 11
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: iconv_mime_encode() in /in/GDZDN on line 11
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: iconv_mime_encode() in /in/GDZDN on line 11