3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $text = "This is the Euro symbol '€'."; echo 'Original : ', $text, PHP_EOL; echo 'IGNORE : ', @iconv("UTF-8", "ISO-8859-1//IGNORE", $text), PHP_EOL;
Output for 5.0.2 - 5.3.29, 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 '€'. IGNORE : This is the Euro symbol ''.
Output for 7.0.6 - 7.0.10
Original : This is the Euro symbol '€'. IGNORE : Fatal error: Uncaught Error: Call to undefined function iconv() in /in/KQumq:6 Stack trace: #0 {main} thrown in /in/KQumq on line 6
Process exited with code 255.
Output for 4.3.10 - 4.4.9, 5.5.35 - 5.5.38, 5.6.21 - 5.6.25
Original : This is the Euro symbol '€'. IGNORE :
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 '€'. IGNORE :
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/KQumq on line 5 PHP_EOLIGNORE : This is the Euro symbol ''. Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/KQumq on line 6 PHP_EOL
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/KQumq on line 5 PHP_EOLIGNORE :
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/KQumq on line 5 PHP_EOLIGNORE :