3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php foreach (mb_list_encodings() as $encoding) { echo $encoding, ': ', bin2hex(mb_convert_encoding('รถ', $encoding, 'UTF-8')), PHP_EOL; }
based on 1R8vD
Output for 5.4.0 - 7.2.6
pass: f6 auto: f6 wchar: f6 byte2be: 00f6 byte2le: f600 byte4be: 000000f6 byte4le: f6000000 BASE64: 7737593d UUENCODE: f6 HTML-ENTITIES: 266f756d6c3b Quoted-Printable: 3d43333d4236 7bit: 8bit: f6 UCS-4: 000000f6 UCS-4BE: 000000f6 UCS-4LE: f6000000 UCS-2: 00f6 UCS-2BE: 00f6 UCS-2LE: f600 UTF-32: 000000f6 UTF-32BE: 000000f6 UTF-32LE: f6000000 UTF-16: 00f6 UTF-16BE: 00f6 UTF-16LE: f600 UTF-8: c3b6 UTF-7: 2b4150592d UTF7-IMAP: 264150592d ASCII: 3f EUC-JP: 8fabd3 SJIS: 3f eucJP-win: 8fabd3 EUC-JP-2004: a9ec SJIS-win: 3f SJIS-Mobile#DOCOMO: 3f SJIS-Mobile#KDDI: 3f SJIS-Mobile#SOFTBANK: 3f SJIS-mac: 3f SJIS-2004: 858c UTF-8-Mobile#DOCOMO: c3b6 UTF-8-Mobile#KDDI-A: c3b6 UTF-8-Mobile#KDDI-B: c3b6 UTF-8-Mobile#SOFTBANK: c3b6 CP932: 3f CP51932: 3f JIS: 1b2428442b531b2842 ISO-2022-JP: 3f ISO-2022-JP-MS: 3f GB18030: 81308b32 Windows-1252: f6 Windows-1254: f6 ISO-8859-1: f6 ISO-8859-2: f6 ISO-8859-3: f6 ISO-8859-4: f6 ISO-8859-5: 3f ISO-8859-6: 3f ISO-8859-7: 3f ISO-8859-8: 3f ISO-8859-9: f6 ISO-8859-10: f6 ISO-8859-13: f6 ISO-8859-14: f6 ISO-8859-15: f6 ISO-8859-16: f6 EUC-CN: 00f6 CP936: 3f HZ: 3f EUC-TW: 3f BIG-5: 3f CP950: 3f EUC-KR: 00f6 UHC: 3f ISO-2022-KR: 3f Windows-1251: 3f CP866: 3f KOI8-R: 3f KOI8-U: 3f ArmSCII-8: 3f CP850: 94 JIS-ms: 3f ISO-2022-JP-2004: 1b242851296c1b2842 ISO-2022-JP-MOBILE#KDDI: 3f CP50220: 3f CP50220raw: 3f CP50221: 3f CP50222: 3f
Output for 5.3.3 - 5.3.29
pass: f6 auto: f6 wchar: f6 byte2be: 00f6 byte2le: f600 byte4be: 000000f6 byte4le: f6000000 BASE64: 7737593d UUENCODE: f6 HTML-ENTITIES: 266f756d6c3b Quoted-Printable: 3d43333d4236 7bit: 8bit: f6 UCS-4: 000000f6 UCS-4BE: 000000f6 UCS-4LE: f6000000 UCS-2: 00f6 UCS-2BE: 00f6 UCS-2LE: f600 UTF-32: 000000f6 UTF-32BE: 000000f6 UTF-32LE: f6000000 UTF-16: 00f6 UTF-16BE: 00f6 UTF-16LE: f600 UTF-8: c3b6 UTF-7: 2b4150592d UTF7-IMAP: 264150592d ASCII: 3f EUC-JP: 8fabd3 SJIS: 3f eucJP-win: 8fabd3 SJIS-win: 3f CP932: 3f CP51932: 3f JIS: 1b2428442b531b2842 ISO-2022-JP: 3f ISO-2022-JP-MS: 3f Windows-1252: f6 Windows-1254: f6 ISO-8859-1: f6 ISO-8859-2: f6 ISO-8859-3: f6 ISO-8859-4: f6 ISO-8859-5: 3f ISO-8859-6: 3f ISO-8859-7: 3f ISO-8859-8: 3f ISO-8859-9: f6 ISO-8859-10: f6 ISO-8859-13: f6 ISO-8859-14: f6 ISO-8859-15: f6 ISO-8859-16: f6 EUC-CN: 00f6 CP936: 3f HZ: 3f EUC-TW: 3f BIG-5: 3f EUC-KR: 00f6 UHC: 3f ISO-2022-KR: 3f Windows-1251: 3f CP866: 3f KOI8-R: 3f KOI8-U: 3f ArmSCII-8: 3f CP850: 94 JIS-ms: 3f CP50220: 3f CP50220raw: 3f CP50221: 3f CP50222: 3f
Output for 5.3.0 - 5.3.2
pass: f6 auto: f6 wchar: f6 byte2be: 00f6 byte2le: f600 byte4be: 000000f6 byte4le: f6000000 BASE64: 7737593d UUENCODE: f6 HTML-ENTITIES: 266f756d6c3b Quoted-Printable: 3d43333d4236 7bit: 8bit: f6 UCS-4: 000000f6 UCS-4BE: 000000f6 UCS-4LE: f6000000 UCS-2: 00f6 UCS-2BE: 00f6 UCS-2LE: f600 UTF-32: 000000f6 UTF-32BE: 000000f6 UTF-32LE: f6000000 UTF-16: 00f6 UTF-16BE: 00f6 UTF-16LE: f600 UTF-8: c3b6 UTF-7: 2b4150592d UTF7-IMAP: 264150592d ASCII: 3f EUC-JP: 8fabd3 SJIS: 3f eucJP-win: 8fabd3 SJIS-win: 3f CP51932: 3f JIS: 1b2428442b531b2842 ISO-2022-JP: 3f ISO-2022-JP-MS: 3f Windows-1252: f6 Windows-1254: f6 ISO-8859-1: f6 ISO-8859-2: f6 ISO-8859-3: f6 ISO-8859-4: f6 ISO-8859-5: 3f ISO-8859-6: 3f ISO-8859-7: 3f ISO-8859-8: 3f ISO-8859-9: f6 ISO-8859-10: f6 ISO-8859-13: f6 ISO-8859-14: f6 ISO-8859-15: f6 ISO-8859-16: f6 EUC-CN: 00f6 CP936: 3f HZ: 3f EUC-TW: 3f BIG-5: 3f EUC-KR: 00f6 UHC: 3f ISO-2022-KR: 3f Windows-1251: 3f CP866: 3f KOI8-R: 3f KOI8-U: 3f ArmSCII-8: 3f CP850: 94
Output for 5.2.1 - 5.2.17
pass: f6 auto: f6 wchar: f6 byte2be: 00f6 byte2le: f600 byte4be: 000000f6 byte4le: f6000000 BASE64: 7737593d UUENCODE: f6 HTML-ENTITIES: 266f756d6c3b Quoted-Printable: 3d43333d4236 7bit: 8bit: f6 UCS-4: 000000f6 UCS-4BE: 000000f6 UCS-4LE: f6000000 UCS-2: 00f6 UCS-2BE: 00f6 UCS-2LE: f600 UTF-32: 000000f6 UTF-32BE: 000000f6 UTF-32LE: f6000000 UTF-16: 00f6 UTF-16BE: 00f6 UTF-16LE: f600 UTF-8: c3b6 UTF-7: 2b4150592d UTF7-IMAP: 264150592d ASCII: 3f EUC-JP: 8fabd3 SJIS: 3f eucJP-win: 8fabd3 SJIS-win: 3f CP51932: 3f JIS: 1b2428442b531b2842 ISO-2022-JP: 3f ISO-2022-JP-MS: 3f Windows-1252: f6 ISO-8859-1: f6 ISO-8859-2: f6 ISO-8859-3: f6 ISO-8859-4: f6 ISO-8859-5: 3f ISO-8859-6: 3f ISO-8859-7: 3f ISO-8859-8: 3f ISO-8859-9: f6 ISO-8859-10: f6 ISO-8859-13: f6 ISO-8859-14: f6 ISO-8859-15: f6 ISO-8859-16: f6 EUC-CN: 00f6 CP936: 3f HZ: 3f EUC-TW: 3f BIG-5: 3f EUC-KR: 00f6 UHC: 3f ISO-2022-KR: 3f Windows-1251: 3f CP866: 3f KOI8-R: 3f ArmSCII-8: 3f
Output for 5.1.0 - 5.2.0
pass: f6 auto: f6 wchar: f6 byte2be: 00f6 byte2le: f600 byte4be: 000000f6 byte4le: f6000000 BASE64: 7737593d UUENCODE: f6 HTML-ENTITIES: 266f756d6c3b Quoted-Printable: 3d43333d4236 7bit: 8bit: f6 UCS-4: 000000f6 UCS-4BE: 000000f6 UCS-4LE: f6000000 UCS-2: 00f6 UCS-2BE: 00f6 UCS-2LE: f600 UTF-32: 000000f6 UTF-32BE: 000000f6 UTF-32LE: f6000000 UTF-16: 00f6 UTF-16BE: 00f6 UTF-16LE: f600 UTF-8: c3b6 UTF-7: 2b4150592d UTF7-IMAP: 264150592d ASCII: 3f EUC-JP: 8fabd3 SJIS: 3f eucJP-win: 8fabd3 SJIS-win: 3f JIS: 1b2428442b531b2842 ISO-2022-JP: 3f Windows-1252: f6 ISO-8859-1: f6 ISO-8859-2: f6 ISO-8859-3: f6 ISO-8859-4: f6 ISO-8859-5: 3f ISO-8859-6: 3f ISO-8859-7: 3f ISO-8859-8: 3f ISO-8859-9: f6 ISO-8859-10: f6 ISO-8859-13: f6 ISO-8859-14: f6 ISO-8859-15: f6 ISO-8859-16: f6 EUC-CN: 00f6 CP936: 3f HZ: 3f EUC-TW: 3f BIG-5: 3f EUC-KR: 00f6 UHC: 3f ISO-2022-KR: 3f Windows-1251: 3f CP866: 3f KOI8-R: 3f ArmSCII-8: 3f
Output for 5.0.4 - 5.0.5
pass: f6 auto: f6 wchar: f6 byte2be: 00f6 byte2le: f600 byte4be: 000000f6 byte4le: f6000000 BASE64: 7737593d UUENCODE: f6 HTML-ENTITIES: 266f756d6c3b Quoted-Printable: 3d43333d4236 7bit: 8bit: f6 UCS-4: 000000f6 UCS-4BE: 000000f6 UCS-4LE: f6000000 UCS-2: 00f6 UCS-2BE: 00f6 UCS-2LE: f600 UTF-32: 000000f6 UTF-32BE: 000000f6 UTF-32LE: f6000000 UTF-16: 00f6 UTF-16BE: 00f6 UTF-16LE: f600 UTF-8: c3b6 UTF-7: 2b4150592d UTF7-IMAP: 264150592d ASCII: 3f EUC-JP: 8fabd3 SJIS: 3f eucJP-win: 8fabd3 SJIS-win: 3f JIS: 1b2428442b531b2842 ISO-2022-JP: 3f Windows-1252: f6 ISO-8859-1: f6 ISO-8859-2: f6 ISO-8859-3: f6 ISO-8859-4: f6 ISO-8859-5: 3f ISO-8859-6: 3f ISO-8859-7: 3f ISO-8859-8: 3f ISO-8859-9: f6 ISO-8859-10: f6 ISO-8859-13: f6 ISO-8859-14: f6 ISO-8859-15: f6 ISO-8859-16: f6 EUC-CN: 00f6 CP936: 3f HZ: 3f EUC-TW: 3f BIG-5: 3f EUC-KR: 00f6 UHC: 3f ISO-2022-KR: 3f Windows-1251: 3f CP866: 3f KOI8-R: 3f
Output for 5.0.2 - 5.0.3
pass: f6 auto: f6 wchar: f6 byte2be: 00f6 byte2le: f600 byte4be: 000000f6 byte4le: f6000000 BASE64: 7737593d UUENCODE: f6 HTML-ENTITIES: 266f756d6c3b Quoted-Printable: 3d43333d4236 7bit: 8bit: f6 UCS-4: 000000f6 UCS-4BE: 000000f6 UCS-4LE: f6000000 UCS-2: 00f6 UCS-2BE: 00f6 UCS-2LE: f600 UTF-32: 000000f6 UTF-32BE: 000000f6 UTF-32LE: f6000000 UTF-16: 00f6 UTF-16BE: 00f6 UTF-16LE: f600 UTF-8: c3b6 UTF-7: 2b4150592d UTF7-IMAP: 264150592d ASCII: 3f EUC-JP: 8fabd3 SJIS: 3f eucJP-win: 8fabd3 SJIS-win: 3f JIS: 1b2428442b531b2842 ISO-2022-JP: 3f Windows-1252: f6 ISO-8859-1: f6 ISO-8859-2: f6 ISO-8859-3: f6 ISO-8859-4: f6 ISO-8859-5: 3f ISO-8859-6: 3f ISO-8859-7: 3f ISO-8859-8: 3f ISO-8859-9: f6 ISO-8859-10: f6 ISO-8859-13: f6 ISO-8859-14: f6 ISO-8859-15: f6 EUC-CN: 00f6 CP936: 3f HZ: 3f EUC-TW: 3f BIG-5: 3f EUC-KR: 00f6 UHC: 3f ISO-2022-KR: 3f Windows-1251: 3f CP866: 3f KOI8-R: 3f
Output for 5.0.0 - 5.0.1
pass: f6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLauto: f6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLwchar: f6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLbyte2be: 00f6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLbyte2le: f600 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLbyte4be: 000000f6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLbyte4le: f6000000 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLBASE64: 7737593d Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLUUENCODE: f6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLHTML-ENTITIES: 266f756d6c3b Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLQuoted-Printable: 3d43333d4236 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOL7bit: Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOL8bit: f6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLUCS-4: 000000f6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLUCS-4BE: 000000f6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLUCS-4LE: f6000000 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLUCS-2: 00f6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLUCS-2BE: 00f6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLUCS-2LE: f600 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLUTF-32: 000000f6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLUTF-32BE: 000000f6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLUTF-32LE: f6000000 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLUTF-16: 00f6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLUTF-16BE: 00f6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLUTF-16LE: f600 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLUTF-8: c3b6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLUTF-7: 2b4150592d Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLUTF7-IMAP: 264150592d Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLASCII: 3f Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLEUC-JP: 8fabd3 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLSJIS: 3f Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLeucJP-win: 8fabd3 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLSJIS-win: 3f Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLJIS: 1b2428442b531b2842 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLISO-2022-JP: 3f Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLWindows-1252: f6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLISO-8859-1: f6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLISO-8859-2: f6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLISO-8859-3: f6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLISO-8859-4: f6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLISO-8859-5: 3f Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLISO-8859-6: 3f Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLISO-8859-7: 3f Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLISO-8859-8: 3f Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLISO-8859-9: f6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLISO-8859-10: f6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLISO-8859-13: f6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLISO-8859-14: f6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLISO-8859-15: f6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLEUC-CN: 00f6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLCP936: 3f Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLHZ: 3f Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLEUC-TW: 3f Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLBIG-5: 3f Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLEUC-KR: 00f6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLUHC: 3f Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLISO-2022-KR: 3f Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLWindows-1251: 3f Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLCP866: 3f Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOLKOI8-R: 3f Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u9sq8 on line 4 PHP_EOL
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: mb_list_encodings() in /in/u9sq8 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: mb_list_encodings() in /in/u9sq8 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: mb_list_encodings() in /in/u9sq8 on line 3