3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo implode(', ', mb_list_encodings('😄','byte2be','auto'));
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
Fatal error: Uncaught ArgumentCountError: mb_list_encodings() expects exactly 0 arguments, 3 given in /in/9ROCV:2 Stack trace: #0 /in/9ROCV(2): mb_list_encodings('\xC3\xB0\xC5\xB8\xCB\x9C\xE2\x80\x9E', 'byte2be', 'auto') #1 {main} thrown in /in/9ROCV on line 2
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Fatal error: Uncaught ArgumentCountError: mb_list_encodings() expects exactly 0 arguments, 3 given in /in/9ROCV:2 Stack trace: #0 /in/9ROCV(2): mb_list_encodings('\xC3\xB0\xC5\xB8\xCB\x9C\xE2\x80\x9E', 'byte2be', 'auto') #1 {main} thrown in /in/9ROCV on line 2
Process exited with code 255.
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: mb_list_encodings() expects exactly 0 parameters, 3 given in /in/9ROCV on line 2 Warning: implode(): Invalid arguments passed in /in/9ROCV on line 2
Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20
pass, auto, wchar, byte2be, byte2le, byte4be, byte4le, BASE64, UUENCODE, HTML-ENTITIES, Quoted-Printable, 7bit, 8bit, UCS-4, UCS-4BE, UCS-4LE, UCS-2, UCS-2BE, UCS-2LE, UTF-32, UTF-32BE, UTF-32LE, UTF-16, UTF-16BE, UTF-16LE, UTF-8, UTF-7, UTF7-IMAP, ASCII, EUC-JP, SJIS, eucJP-win, EUC-JP-2004, SJIS-win, SJIS-Mobile#DOCOMO, SJIS-Mobile#KDDI, SJIS-Mobile#SOFTBANK, SJIS-mac, SJIS-2004, UTF-8-Mobile#DOCOMO, UTF-8-Mobile#KDDI-A, UTF-8-Mobile#KDDI-B, UTF-8-Mobile#SOFTBANK, CP932, CP51932, JIS, ISO-2022-JP, ISO-2022-JP-MS, GB18030, Windows-1252, Windows-1254, ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16, EUC-CN, CP936, HZ, EUC-TW, BIG-5, CP950, EUC-KR, UHC, ISO-2022-KR, Windows-1251, CP866, KOI8-R, KOI8-U, ArmSCII-8, CP850, JIS-ms, ISO-2022-JP-2004, ISO-2022-JP-MOBILE#KDDI, CP50220, CP50220raw, CP50221, CP50222
Output for 5.3.3 - 5.3.29
pass, auto, wchar, byte2be, byte2le, byte4be, byte4le, BASE64, UUENCODE, HTML-ENTITIES, Quoted-Printable, 7bit, 8bit, UCS-4, UCS-4BE, UCS-4LE, UCS-2, UCS-2BE, UCS-2LE, UTF-32, UTF-32BE, UTF-32LE, UTF-16, UTF-16BE, UTF-16LE, UTF-8, UTF-7, UTF7-IMAP, ASCII, EUC-JP, SJIS, eucJP-win, SJIS-win, CP932, CP51932, JIS, ISO-2022-JP, ISO-2022-JP-MS, Windows-1252, Windows-1254, ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16, EUC-CN, CP936, HZ, EUC-TW, BIG-5, EUC-KR, UHC, ISO-2022-KR, Windows-1251, CP866, KOI8-R, KOI8-U, ArmSCII-8, CP850, JIS-ms, CP50220, CP50220raw, CP50221, CP50222
Output for 5.3.0 - 5.3.2
pass, auto, wchar, byte2be, byte2le, byte4be, byte4le, BASE64, UUENCODE, HTML-ENTITIES, Quoted-Printable, 7bit, 8bit, UCS-4, UCS-4BE, UCS-4LE, UCS-2, UCS-2BE, UCS-2LE, UTF-32, UTF-32BE, UTF-32LE, UTF-16, UTF-16BE, UTF-16LE, UTF-8, UTF-7, UTF7-IMAP, ASCII, EUC-JP, SJIS, eucJP-win, SJIS-win, CP51932, JIS, ISO-2022-JP, ISO-2022-JP-MS, Windows-1252, Windows-1254, ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16, EUC-CN, CP936, HZ, EUC-TW, BIG-5, EUC-KR, UHC, ISO-2022-KR, Windows-1251, CP866, KOI8-R, KOI8-U, ArmSCII-8, CP850
Output for 5.2.1 - 5.2.17
pass, auto, wchar, byte2be, byte2le, byte4be, byte4le, BASE64, UUENCODE, HTML-ENTITIES, Quoted-Printable, 7bit, 8bit, UCS-4, UCS-4BE, UCS-4LE, UCS-2, UCS-2BE, UCS-2LE, UTF-32, UTF-32BE, UTF-32LE, UTF-16, UTF-16BE, UTF-16LE, UTF-8, UTF-7, UTF7-IMAP, ASCII, EUC-JP, SJIS, eucJP-win, SJIS-win, CP51932, JIS, ISO-2022-JP, ISO-2022-JP-MS, Windows-1252, ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16, EUC-CN, CP936, HZ, EUC-TW, BIG-5, EUC-KR, UHC, ISO-2022-KR, Windows-1251, CP866, KOI8-R, ArmSCII-8
Output for 5.1.0 - 5.1.6, 5.2.0
pass, auto, wchar, byte2be, byte2le, byte4be, byte4le, BASE64, UUENCODE, HTML-ENTITIES, Quoted-Printable, 7bit, 8bit, UCS-4, UCS-4BE, UCS-4LE, UCS-2, UCS-2BE, UCS-2LE, UTF-32, UTF-32BE, UTF-32LE, UTF-16, UTF-16BE, UTF-16LE, UTF-8, UTF-7, UTF7-IMAP, ASCII, EUC-JP, SJIS, eucJP-win, SJIS-win, JIS, ISO-2022-JP, Windows-1252, ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16, EUC-CN, CP936, HZ, EUC-TW, BIG-5, EUC-KR, UHC, ISO-2022-KR, Windows-1251, CP866, KOI8-R, ArmSCII-8
Output for 5.0.4 - 5.0.5
pass, auto, wchar, byte2be, byte2le, byte4be, byte4le, BASE64, UUENCODE, HTML-ENTITIES, Quoted-Printable, 7bit, 8bit, UCS-4, UCS-4BE, UCS-4LE, UCS-2, UCS-2BE, UCS-2LE, UTF-32, UTF-32BE, UTF-32LE, UTF-16, UTF-16BE, UTF-16LE, UTF-8, UTF-7, UTF7-IMAP, ASCII, EUC-JP, SJIS, eucJP-win, SJIS-win, JIS, ISO-2022-JP, Windows-1252, ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16, EUC-CN, CP936, HZ, EUC-TW, BIG-5, EUC-KR, UHC, ISO-2022-KR, Windows-1251, CP866, KOI8-R
Output for 5.0.0 - 5.0.3
pass, auto, wchar, byte2be, byte2le, byte4be, byte4le, BASE64, UUENCODE, HTML-ENTITIES, Quoted-Printable, 7bit, 8bit, UCS-4, UCS-4BE, UCS-4LE, UCS-2, UCS-2BE, UCS-2LE, UTF-32, UTF-32BE, UTF-32LE, UTF-16, UTF-16BE, UTF-16LE, UTF-8, UTF-7, UTF7-IMAP, ASCII, EUC-JP, SJIS, eucJP-win, SJIS-win, JIS, ISO-2022-JP, Windows-1252, ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10, ISO-8859-13, ISO-8859-14, ISO-8859-15, EUC-CN, CP936, HZ, EUC-TW, BIG-5, EUC-KR, UHC, ISO-2022-KR, Windows-1251, CP866, KOI8-R
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: mb_list_encodings() in /in/9ROCV on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
Fatal error: Call to undefined function: mb_list_encodings() in /in/9ROCV on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: mb_list_encodings() in /in/9ROCV on line 2

preferences:
228.59 ms | 401 KiB | 355 Q