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" => 76, "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.4.0 - 5.4.19
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/47vmk on line 15
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected $end, expecting ',' or ';' in /in/47vmk on line 15
Process exited with code 255.

preferences:
183.45 ms | 1395 KiB | 55 Q