3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "ICONV_IMPL: ", ICONV_IMPL, "; ICONV_VERSION: ", ICONV_VERSION, "\n"; echo iconv('ASCII', 'UTF-8', 'Hello'); echo iconv('ASCII', 'ISO-8859-1', 'Hello');
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.25, 8.4.1 - 8.4.12
ICONV_IMPL: glibc; ICONV_VERSION: 2.33 Hello Warning: iconv(): Wrong encoding, conversion from "ASCII" to "ISO-8859-1" is not allowed in /in/biGa8 on line 6
Output for 7.4.33
ICONV_IMPL: Warning: Use of undefined constant ICONV_IMPL - assumed 'ICONV_IMPL' (this will throw an Error in a future version of PHP) in /in/biGa8 on line 3 ICONV_IMPL; ICONV_VERSION: Warning: Use of undefined constant ICONV_VERSION - assumed 'ICONV_VERSION' (this will throw an Error in a future version of PHP) in /in/biGa8 on line 3 ICONV_VERSION Fatal error: Uncaught Error: Call to undefined function iconv() in /in/biGa8:5 Stack trace: #0 {main} thrown in /in/biGa8 on line 5
Process exited with code 255.
Output for 7.4.0 - 7.4.32
ICONV_IMPL: glibc; ICONV_VERSION: 2.33 Hello Notice: iconv(): Wrong charset, conversion from `ASCII' to `ISO-8859-1' is not allowed in /in/biGa8 on line 6

preferences:
125.09 ms | 409 KiB | 5 Q