3v4l.org

run code in 300+ PHP versions simultaneously
<?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"; $string = str_replace($sir_title1, $sir_title2, $string) $string= mb_convert_encoding($string, 'ASCII//TRANSLIT', 'UTF-8'); print (iconv('UTF-8', 'CP1256', $string));
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.15
Parse error: syntax error, unexpected '$string' (T_VARIABLE) in /in/epO0E on line 11
Process exited with code 255.

preferences:
167.42 ms | 1395 KiB | 22 Q