3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<? $text = "=?ISO-8859-1?Q?Keld_J=F8rn_Simonsen?= <keld@example.com>"; $elements = imap_mime_header_decode($text); for ($i=0; $i<count($elements); $i++) { echo "Charset: {$elements[$i]->charset}\n"; echo "Text: {$elements[$i]->text}\n\n"; } ?>
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function imap_mime_header_decode() in /in/Ps6Ca:4 Stack trace: #0 {main} thrown in /in/Ps6Ca on line 4
Process exited with code 255.
Output for 5.4.34 - 5.6.28, hhvm-3.10.0 - 3.12.0
Fatal error: Call to undefined function imap_mime_header_decode() in /in/Ps6Ca on line 4
Process exited with code 255.
Output for 4.3.0 - 5.4.32
<? $text = "=?ISO-8859-1?Q?Keld_J=F8rn_Simonsen?= <keld@example.com>"; $elements = imap_mime_header_decode($text); for ($i=0; $i<count($elements); $i++) { echo "Charset: {$elements[$i]->charset}\n"; echo "Text: {$elements[$i]->text}\n\n"; } ?>