3v4l.org

run code in 300+ PHP versions simultaneously
<?php iconv_set_encoding('internal_encoding', 'UTF-8'); iconv_set_encoding('input_encoding', 'UTF-8'); iconv_set_encoding('output_encoding', 'UTF-8'); $headers = <<< HEADERS X-Header-One: H4sIAAAAAAAAA+NgFlsCAAA= X-Header-Two: XtLePq6GTMn8G68F0 HEADERS; echo "Wrong decoding:\n"; var_dump(iconv_mime_decode_headers($headers, ICONV_MIME_DECODE_CONTINUE_ON_ERROR)); echo "Correct decoding:\n"; var_dump(iconv_mime_decode_headers($headers, ICONV_MIME_DECODE_STRICT));
Output for git.master
Deprecated: iconv_set_encoding(): Use of iconv.internal_encoding is deprecated in /in/QcCSR on line 3 Deprecated: iconv_set_encoding(): Use of iconv.input_encoding is deprecated in /in/QcCSR on line 4 Deprecated: iconv_set_encoding(): Use of iconv.output_encoding is deprecated in /in/QcCSR on line 5 Wrong decoding: array(2) { ["X-Header-One"]=> string(24) "H4sIAAAAAAAAA+NgFlsCAAA=" ["X-Header-Two"]=> string(17) "XtLePq6GTMn8G68F0" } Correct decoding: array(2) { ["X-Header-One"]=> string(24) "H4sIAAAAAAAAA+NgFlsCAAA=" ["X-Header-Two"]=> string(17) "XtLePq6GTMn8G68F0" }

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:
65.28 ms | 410 KiB | 5 Q