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 возле горсовета собрались сотни людей, которые выступают за единую Украину и против ввода российских вой...".$t; $description_text_lenght = 245 - strlen($t); $full_text = mb_substr($item['stxt'], 0, $description_text_lenght) . $other_text; var_dump( array($full_text,mb_substr($t, 0,1,'UTF-8'),iconv_strlen($t,'UTF-8'),strlen($t)) );
Output for 5.0.4 - 5.5.34, 5.6.8 - 5.6.20, 5.6.28, hhvm-3.12.0, 7.0.0 - 7.0.5, 7.0.14 - 7.1.0
Notice: Undefined variable: item in /in/iiu05 on line 7 Notice: Undefined variable: other_text in /in/iiu05 on line 7 array(4) { [0]=> string(0) "" [1]=> string(1) "#" [2]=> int(85) [3]=> int(121) }
Output for 7.0.6
Notice: Undefined variable: item in /in/iiu05 on line 7 Notice: Undefined variable: other_text in /in/iiu05 on line 7 Fatal error: Uncaught Error: Call to undefined function iconv_strlen() in /in/iiu05:10 Stack trace: #0 {main} thrown in /in/iiu05 on line 10
Process exited with code 255.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.5.35, 5.6.21
Notice: Undefined variable: item in /in/iiu05 on line 7 Notice: Undefined variable: other_text in /in/iiu05 on line 7 Fatal error: Call to undefined function iconv_strlen() in /in/iiu05 on line 10
Process exited with code 255.
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: item in /in/iiu05 on line 7 Notice: Undefined variable: other_text in /in/iiu05 on line 7 array(4) { [0]=> string(0) "" [1]=> string(1) "#" [2]=> int(85) [3]=> int(121) }
Output for 4.4.5 - 4.4.9
Notice: Undefined variable: item in /in/iiu05 on line 7 Notice: Undefined variable: other_text in /in/iiu05 on line 7 Fatal error: Call to undefined function: iconv_strlen() in /in/iiu05 on line 10
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Undefined variable: item in /in/iiu05 on line 7 Notice: Undefined variable: other_text in /in/iiu05 on line 7 Fatal error: Call to undefined function: iconv_strlen() in /in/iiu05 on line 10
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: item in /in/iiu05 on line 7 Notice: Undefined variable: other_text in /in/iiu05 on line 7 Fatal error: Call to undefined function: iconv_strlen() in /in/iiu05 on line 10