3v4l.org

run code in 300+ PHP versions simultaneously
<?php $preferences = array( "input-charset" => "ISO-8859-1", "output-charset" => "UTF-8", "line-length" => 76, "line-break-chars" => "\n" ); $preferences["scheme"] = "Q"; // This yields "Subject: =?UTF-8?Q?Pr=C3=BCfung=20Pr=C3=BCfung?=" echo iconv_mime_encode("Subject", "Prüfung Prüfung", $preferences);
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: iconv_mime_encode(): Wrong encoding, conversion from "ISO-8859-1" to "UTF-8" is not allowed in /in/URG0A on line 11
Output for 7.4.33
Fatal error: Uncaught Error: Call to undefined function iconv_mime_encode() in /in/URG0A:11 Stack trace: #0 {main} thrown in /in/URG0A on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.29, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.32
Notice: iconv_mime_encode(): Wrong charset, conversion from `ISO-8859-1' to `UTF-8' is not allowed in /in/URG0A on line 11
Output for 5.4.0 - 5.4.45
Fatal error: Call to undefined function iconv_mime_encode() in /in/URG0A on line 11
Process exited with code 255.

preferences:
248.05 ms | 401 KiB | 415 Q