3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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 5.5.26 - 5.5.34, 5.6.10 - 5.6.20, 5.6.28 - 7.0.5, 7.0.14 - 7.1.0
Original : This is the Euro symbol '€'. TRANSLIT : This is the Euro symbol 'EUR'. IGNORE : This is the Euro symbol ''. Plain : Notice: iconv(): Detected an illegal character in input string in /in/k615V on line 7
Output for 7.0.6
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.5.35, 5.6.21
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.
Output for 5.4.0 - 5.5.25, 5.6.8 - 5.6.9
Original : This is the Euro symbol '€'. TRANSLIT : This is the Euro symbol 'EUR'. IGNORE : Notice: iconv(): Detected an illegal character in input string in /in/k615V on line 6 Plain : Notice: iconv(): Detected an illegal character in input string in /in/k615V on line 7
Output for 5.0.2 - 5.3.29
Original : This is the Euro symbol '€'. TRANSLIT : This is the Euro symbol 'EUR'. IGNORE : Notice: iconv(): Detected an illegal character in input string in /in/k615V on line 6 This is the Euro symbol ''. Plain : Notice: iconv(): Detected an illegal character in input string in /in/k615V on line 7 This is the Euro symbol '
Output for 5.0.0 - 5.0.1
Original : This is the Euro symbol '€'. Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/k615V on line 4 PHP_EOLTRANSLIT : This is the Euro symbol 'EUR'. Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/k615V on line 5 PHP_EOLIGNORE : Notice: iconv(): Detected an illegal character in input string in /in/k615V on line 6 This is the Euro symbol ''. Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/k615V on line 6 PHP_EOLPlain : Notice: iconv(): Detected an illegal character in input string in /in/k615V on line 7 This is the Euro symbol ' Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/k615V on line 7 PHP_EOL
Output for 4.4.5 - 4.4.9
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.
Output for 4.3.10 - 4.4.4
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.
Output for 4.3.2 - 4.3.9
Original : This is the Euro symbol '€'. Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/k615V on line 4 PHP_EOLTRANSLIT : Fatal error: Call to undefined function: iconv() in /in/k615V on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Original : This is the Euro symbol '€'. Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/k615V on line 4 PHP_EOLTRANSLIT : Fatal error: Call to undefined function: iconv() in /in/k615V on line 5