3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $t = '#Новости_0629 #Мариуполь #митинг #война Подробнее: http://www.0629.com.ua/news/488931'; $t_full = "В 14.00 возле горсовета собрались сотни людей, которые выступают против Украину $description_text_lenght = 225 - strlen($t); $full_text = mb_substr($t_full , 0, $description_text_lenght) . $t; var_dump( array($full_text,mb_substr($t, 0,1,'UTF-8'),iconv_strlen($t,'UTF-8'),strlen($t)) );
based on oaaLl
Output for 5.4.0 - 5.4.32
Parse error: syntax error, unexpected end of file in /in/rQIRn on line 11
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected $end in /in/rQIRn on line 11
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected $ in /in/rQIRn on line 11
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/rQIRn on line 11
Process exited with code 255.