3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function decodeHeader($header) { $charset = 'UTF-8'; $decoded = iconv_mime_decode($header, ICONV_MIME_DECODE_STRICT, $charset); return $decoded; } $header = '=?utf-8?Q?=D0=90=D0=BA=D1=82=D0=B8=D0=B2=D0=B0=D1=86=D0=B8=D1=8F=20=D1=83=D1=87=D0=B5=D1=82=D0=BD=D0=BE=D0=B9=20=D0=B7=D0=B0=D0=BF=D0=B8=D1=81=D0=B8?='; var_dump(decodeHeader($header));
Output for 5.0.0 - 5.5.34, 5.6.0 - 5.6.20, 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.5, 7.0.14 - 7.1.0
string(46) "Активация учетной записи"
Output for 7.0.6 - 7.0.7
Fatal error: Uncaught Error: Call to undefined function iconv_mime_decode() in /in/nROdU:7 Stack trace: #0 /in/nROdU(15): decodeHeader('=?utf-8?Q?=D0=9...') #1 {main} thrown in /in/nROdU on line 7
Process exited with code 255.
Output for 5.5.35 - 5.5.36, 5.6.21 - 5.6.22
Fatal error: Call to undefined function iconv_mime_decode() in /in/nROdU on line 7
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: iconv_mime_decode() in /in/nROdU on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: iconv_mime_decode() in /in/nROdU on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: iconv_mime_decode() in /in/nROdU on line 7