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.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
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:
114.1 ms | 401 KiB | 121 Q