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, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.5, 7.0.12 - 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/SAg4k on line 8
Output for 7.0.6 - 7.0.10
Original : This is the Euro symbol '€'. TRANSLIT : Fatal error: Uncaught Error: Call to undefined function iconv() in /in/SAg4k:6 Stack trace: #0 {main} thrown in /in/SAg4k on line 6
Process exited with code 255.
Output for 5.5.35 - 5.5.38, 5.6.21 - 5.6.25
Original : This is the Euro symbol '€'. TRANSLIT : Fatal error: Call to undefined function iconv() in /in/SAg4k on line 6
Process exited with code 255.
Output for 5.4.0 - 5.5.25, 5.6.0 - 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/SAg4k on line 7 Plain : Notice: iconv(): Detected an illegal character in input string in /in/SAg4k on line 8
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/SAg4k on line 7 This is the Euro symbol ''. Plain : Notice: iconv(): Detected an illegal character in input string in /in/SAg4k on line 8 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/SAg4k on line 5 PHP_EOLTRANSLIT : This is the Euro symbol 'EUR'. Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/SAg4k on line 6 PHP_EOLIGNORE : Notice: iconv(): Detected an illegal character in input string in /in/SAg4k on line 7 This is the Euro symbol ''. Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/SAg4k on line 7 PHP_EOLPlain : Notice: iconv(): Detected an illegal character in input string in /in/SAg4k on line 8 This is the Euro symbol ' Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/SAg4k on line 8 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/SAg4k on line 6
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/SAg4k on line 6
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/SAg4k on line 5 PHP_EOLTRANSLIT : Fatal error: Call to undefined function: iconv() in /in/SAg4k on line 6
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/SAg4k on line 5 PHP_EOLTRANSLIT : Fatal error: Call to undefined function: iconv() in /in/SAg4k on line 6