3v4l.org

run code in 300+ PHP versions simultaneously
<?php //По словам вице-премьера Крыма, единственными законными вооруженными формированиями на территории Крыма являются российские вооружен... #Новости_0629 #.. $stxt = "По словам вице-премьера Крыма, единственными законными вооруженными формированиями на территории Крыма являются российские вооруженные силы."; $keywords = ''; $keywords = explode(',',$keywords); $other_text = "...<br> #Новости_0629"; foreach ($keywords as $value) { $other_text.= !empty($value) ? " #" . trim($value) : ''; } $other_text .= "<br> Подробнее: http://www.0629.com.ua/news/489813"; $strlen_other = strlen($other_text); echo $other_text . PHP_EOL; echo $strlen_other . PHP_EOL; echo iconv_strlen($other_text,'UTF-8') . PHP_EOL; $description_text_lenght = 200 - $strlen_other; echo $description_text_lenght . PHP_EOL; $full_text = mb_substr($stxt, 0, $description_text_lenght,'UTF-8') . $other_text; if(false){ $full_text .="<br> <img src='http://s.citysites.ua/section/newsIcon/upload/images/news/icon/93917261-8562-kryim_13941132274.jpg'/><br>"; } var_dump($full_text);
Output for git.master, git.master_jit, rfc.property-hooks
...<br> #Новости_0629<br> Подробнее: http://www.0629.com.ua/news/489813 87 71 113 string(299) "По словам вице-премьера Крыма, единственными законными вооруженными формированиями на территории Крыма являются р...<br> #Новости_0629<br> Подробнее: http://www.0629.com.ua/news/489813"

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
37.09 ms | 402 KiB | 8 Q