3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $sir_title1 = array("ă", "Ă", "î", "Î", "ş", "ș", "Ş", "ţ", "Ţ", "â", "Â", "„", "“", " ", ",", ".", "”", "«", "»", "–", "?"); $sir_title2 = array("a", "A", "i", "I", "s", "s", "S", "t", "T", "a", "A", "", "", "-", "-", "-", "", "", "", "-", ""); $string = "Francezul care a făcut aproape 9 miliarde într-un an la Botoșani, a ciocănit într-un hotel la porțile raiului – VIDEO & GALERIE FOTO"; //print (str_replace($sir_title1, $sir_title2, $string)); $string= mb_convert_encoding($string, 'UTF-8', 'UTF-8'); print (iconv('UTF-8', 'Windows-1252', $string));
based on aYWQT
Output for 5.4.9 - 5.5.34, 5.6.8 - 5.6.20, 5.6.28 - 7.0.5, 7.0.20 - 7.2.0
Notice: iconv(): Detected an illegal character in input string in /in/2pR6t on line 12
Output for 7.0.6
Fatal error: Uncaught Error: Call to undefined function iconv() in /in/2pR6t:12 Stack trace: #0 {main} thrown in /in/2pR6t on line 12
Process exited with code 255.
Output for 5.5.35, 5.6.21
Fatal error: Call to undefined function iconv() in /in/2pR6t on line 12
Process exited with code 255.
Output for 5.3.19 - 5.3.29
Notice: iconv(): Detected an illegal character in input string in /in/2pR6t on line 12 Francezul care a f