3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $value = 'фывафы№№№вафыва'; $encoded = iconv_mime_encode('x-test', $value, array('scheme' => 'Q')); var_dump($encoded);
based on 3V4gg
Output for 5.6.8 - 5.6.20, 5.6.28 - 7.0.5, 7.0.20 - 7.3.0alpha1
string(134) "x-test: =?UTF-8?Q?=D1=84=D1=8B=D0=B2=D0=B0=D1=84=D1=8B=E2=84=96=E2=84=96?= =?UTF-8?Q?=E2=84=96=D0=B2=D0=B0=D1=84=D1=8B=D0=B2=D0=B0?="
Output for 7.0.6
Fatal error: Uncaught Error: Call to undefined function iconv_mime_encode() in /in/tXo4i:5 Stack trace: #0 {main} thrown in /in/tXo4i on line 5
Process exited with code 255.
Output for 5.5.35, 5.6.21
Fatal error: Call to undefined function iconv_mime_encode() in /in/tXo4i on line 5
Process exited with code 255.
Output for 5.3.22 - 5.5.34
string(144) "x-test: =?ISO-8859-1?Q?=D1=84=D1=8B=D0=B2=D0=B0=D1=84=D1=8B=E2=84=96=E2=84?= =?ISO-8859-1?Q?=96=E2=84=96=D0=B2=D0=B0=D1=84=D1=8B=D0=B2=D0=B0?="