3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit, rfc.property-hooks
Warning: iconv_mime_encode(): Wrong encoding, conversion from "ISO-8859-1" to "UTF-8" is not allowed in /in/GDZDN on line 11 Subject: =?UTF-8?Q?Pr=C3=BCfung=20Pr=C3=BCfung?=

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
39.23 ms | 401 KiB | 8 Q