3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $text = 'PUNÔT 55'; $prevInternalEncoding = mb_internal_encoding(); var_dump($prevInternalEncoding); mb_internal_encoding('UTF-32'); $text = iconv('UTF-16', 'UTF-32', $text); echo mb_substr($text, 5);
based on Im48p
Output for 5.6.8 - 5.6.20, 7.0.0 - 7.0.5, 7.0.14 - 7.3.0rc3
string(5) "UTF-8" Notice: iconv(): Detected an incomplete multibyte character in input string in /in/s3882 on line 7
Output for 7.0.6
string(5) "UTF-8" Fatal error: Uncaught Error: Call to undefined function iconv() in /in/s3882:7 Stack trace: #0 {main} thrown in /in/s3882 on line 7
Process exited with code 255.
Output for 5.6.21
string(5) "UTF-8" Fatal error: Call to undefined function iconv() in /in/s3882 on line 7
Process exited with code 255.
Output for 5.5.35
string(10) "ISO-8859-1" Fatal error: Call to undefined function iconv() in /in/s3882 on line 7
Process exited with code 255.
Output for 5.0.0 - 5.5.34
string(10) "ISO-8859-1" Notice: iconv(): Detected an incomplete multibyte character in input string in /in/s3882 on line 7
Output for 4.4.5 - 4.4.9
string(10) "ISO-8859-1" Fatal error: Call to undefined function: iconv() in /in/s3882 on line 7
Process exited with code 255.
Output for 4.3.3 - 4.4.4
string(10) "ISO-8859-1" Fatal error: Call to undefined function: iconv() in /in/s3882 on line 7
Process exited with code 255.
Output for 4.3.2
string(4) "pass" Fatal error: Call to undefined function: iconv() in /in/s3882 on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
string(4) "pass" Fatal error: Call to undefined function: iconv() in /in/s3882 on line 7