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));

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.6.150.0100.06318.29
5.6.140.0000.05718.15
5.6.130.0030.09018.13
5.6.120.0100.04720.99
5.6.110.0100.07321.11
5.6.100.0130.07321.11
5.6.90.0030.06320.95
5.6.80.0070.04720.52
5.5.300.0100.07718.08
5.5.290.0100.05017.98
5.5.280.0030.08720.78
5.5.270.0130.06320.73
5.5.260.0200.05720.63
5.5.250.0030.08320.55
5.5.240.4070.03720.26

preferences:
141.99 ms | 1394 KiB | 7 Q