3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $original = "=?UTF-8?Q?=E3=80=8E=E3=80=90=E5=A4=96=E8=B3=87=E7=B3=BB=E6=88=A6=E7=95=A5=E3=82=B3=E3=83=B3=E3=82=B5=E3=83=AB=E3=81=8C=E9=9B=86=E7=B5=90=E3=80=91=E3=83=88=E3=83=83=E3=83=97=E3=82=B3=E3=83=B3=E3=82=B5=E3=83=AB=E3=82=BF=E3=83=B3=E3=83=88=E3=81=A8=E8=A9=B1=E3=81=9B=E3=82=8B=E3=82=B3=E3=83=B3=E3=82=B5=E3=83=AB=E6=A5=AD=E7=95=8C=E7=A0=94=E7=A9=B6=E3=82=BB=E3=83=9F=E3=83=8A=E3=83=BC=E3=80=8F=E3=81=B8=E3=81=AE=E3=82=A8=E3=83=B3=E3=83=88=E3=83=AA=E3=83=BC=E3=81=82=E3=82=8A=E3=81=8C=E3=81=A8=E3=81=86=E3=81=94=E3=81=96=E3=81=84=E3=81=BE=E3=81=97=E3=81=9F=E3=80=82?="; $decoded = iconv_mime_decode($original, ICONV_MIME_DECODE_STRICT, 'utf-8'); $prefs = array('input-charset' => 'UTF-8', 'output-charset' => 'UTF-8', 'scheme' => 'Q', 'line-length' => 1000); $encoded = iconv_mime_encode('Subject', $decoded, $prefs); list($_, $encoded) = explode(' ', $encoded, 2); echo 'Before: ' . strlen($original) . ', After: ' . strlen($encoded) . "\n"; ?>
Output for 7.0.0 - 7.0.5, 7.0.20 - 7.2.0
Before: 561, After: 565
Output for 7.0.6
Fatal error: Uncaught Error: Call to undefined function iconv_mime_decode() in /in/XZmOA:3 Stack trace: #0 {main} thrown in /in/XZmOA on line 3
Process exited with code 255.
Output for 5.3.17 - 5.5.34, 5.6.8 - 5.6.20, 5.6.28
Before: 561, After: 567
Output for 5.5.35, 5.6.21
Fatal error: Call to undefined function iconv_mime_decode() in /in/XZmOA on line 3
Process exited with code 255.