3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true); echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; /** * RSS2 Feed Template for displaying RSS2 Posts feed. * * @package WordPress * TARATUR */ function getLastCategory ($allcategories) { $catArray = explode("\n",$allcategories); $lastCat = $catArray[count($catArray)-2]; return $lastCat; } function transliterate($textCyrillic){ $cyr = array( 'а' ,'б' ,'в' ,'г' ,'д' ,'ѓ' ,'е' ,'ж' ,'з' ,'ѕ' ,'и' ,'ј' ,'к' ,'л' ,'љ' ,'м' ,'н' ,'њ' ,'о' ,'п' ,'р' ,'с' ,'т' ,'ќ' ,'у' ,'ф' ,'х' ,'ц' ,'ч' ,'џ' ,'ш' , 'А' ,'Б' ,'В' ,'Г' ,'Д' ,'Ѓ' ,'Е' ,'Ж' ,'З' ,'Ѕ' ,'И' ,'Ј' ,'К' ,'Л' ,'Љ' ,'М' ,'Н' ,'Њ' ,'О' ,'П' ,'Р' ,'С' ,'Т' ,'Ќ' ,'У' ,'Ф' ,'Х' ,'Ц' ,'Ч' ,'Џ' ,'Ш','„','”','–','…','Р','“'); $lat = array( 'a' ,'b' ,'v' ,'g' ,'d' ,'gj' ,'e' ,'zh' ,'z' ,'dz' ,'i' ,'j' ,'k' ,'l' ,'lj' ,'m' ,'n' ,'nj' ,'o' ,'p' ,'r' ,'s' ,'t' ,'kj' ,'u' ,'f' ,'h' ,'c' ,'ch' ,'dz', 'sh' , 'A' ,'B' ,'V' ,'G' ,'D' ,'Gj' ,'E' ,'Zh' ,'Z' ,'Dz' ,'I' ,'J' ,'K' ,'L' ,'Lj' ,'M' ,'N' ,'Nj' ,'O' ,'P' ,'R' ,'S' ,'T' ,'Kj' ,'U' ,'F' ,'H' ,'C' ,'Ch' ,'Dz', 'Sh' ,'"','"','-','...','R','"'); // Р… Рё РЏ СЃРµ исти return str_replace($cyr, $lat, $textCyrillic); } < $smsContent = transliterate(strip_tags($content)); $smsContent = str_replace(array("\r\n", "\n", "\r"), ' ', $smsContent); $smsContent = str_replace("&nbsp;", ' ', $smsContent); $smsContent = str_replace("\xc2\xa0", ' ', $smsContent); $smsContent = preg_replace('!\s+!', ' ', $smsContent); $smsContent = substr($smsContent, 0, 300); $smsContent = substr($smsContent,0,strrpos($smsContent," ")); $smsContent = preg_replace('/[^\00-\255]+/u', '', $smsContent); ?> <SMStext><?php echo $smsContent; ?></SMStext>

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)
7.1.30.3570.06036.46
7.1.20.0300.07736.47
7.1.10.0170.07320.31
7.1.00.0070.07020.51
7.0.170.0070.08320.06
7.0.160.0170.07320.08
7.0.150.0070.08320.04
7.0.140.3800.07720.18
7.0.130.3630.06020.03
7.0.120.0570.06020.05
7.0.110.0070.06019.98
7.0.100.0100.06320.16
7.0.90.0130.06720.08
7.0.80.3200.07020.00
7.0.70.0130.07320.21
7.0.60.0130.08320.15
7.0.50.0130.06720.09
7.0.40.0130.06720.14
7.0.30.0170.07020.03
7.0.20.0130.07320.04
7.0.10.0200.06720.06
7.0.00.1830.07320.11

preferences:
139.92 ms | 1398 KiB | 7 Q