3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "This is the Euro symbol '€'."; echo 'Original : ', $text, PHP_EOL; echo 'TRANSLIT : ', iconv("UTF-8", "ISO-8859-1//TRANSLIT", $text), PHP_EOL; echo 'IGNORE : ', iconv("UTF-8", "ISO-8859-1//IGNORE", $text), PHP_EOL; echo 'Plain : ', iconv("UTF-8", "ISO-8859-1", $text), PHP_EOL; ?>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Original : This is the Euro symbol '€'. TRANSLIT : Warning: iconv(): Wrong encoding, conversion from "UTF-8" to "ISO-8859-1//TRANSLIT" is not allowed in /in/k615V on line 5 IGNORE : Warning: iconv(): Wrong encoding, conversion from "UTF-8" to "ISO-8859-1//IGNORE" is not allowed in /in/k615V on line 6 Plain : Warning: iconv(): Wrong encoding, conversion from "UTF-8" to "ISO-8859-1" is not allowed in /in/k615V on line 7
Output for 7.4.33
Original : This is the Euro symbol '€'. TRANSLIT : Fatal error: Uncaught Error: Call to undefined function iconv() in /in/k615V:5 Stack trace: #0 {main} thrown in /in/k615V on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.29, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.32
Original : This is the Euro symbol '€'. TRANSLIT : Notice: iconv(): Wrong charset, conversion from `UTF-8' to `ISO-8859-1//TRANSLIT' is not allowed in /in/k615V on line 5 IGNORE : Notice: iconv(): Wrong charset, conversion from `UTF-8' to `ISO-8859-1//IGNORE' is not allowed in /in/k615V on line 6 Plain : Notice: iconv(): Wrong charset, conversion from `UTF-8' to `ISO-8859-1' is not allowed in /in/k615V on line 7
Output for 5.4.0 - 5.4.45
Original : This is the Euro symbol '€'. TRANSLIT : Fatal error: Call to undefined function iconv() in /in/k615V on line 5
Process exited with code 255.

preferences:
251.85 ms | 401 KiB | 415 Q