3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $aa = 'Уважаемые абоненты! Благодарим Вас за обратную связь в нашей Гостевой книге. '; function strMore($count, $button_name = 'Показать...'){ $str_array = explode(' ', $aa); if(isset($str_array[count])){ $str_array[count] = '<span class="more"><button></button>'.$b[20]; $str_array[] = '</span>'; } return implode(' ', $str_array); } echo strMore($aa);
Output for 5.0.4 - 5.6.28, hhvm-3.10.0, 7.0.0 - 7.1.0
Notice: Undefined variable: aa in /in/3Vilg on line 6 Notice: Use of undefined constant count - assumed 'count' in /in/3Vilg on line 8
Output for hhvm-3.12.0
Notice: Undefined variable: aa in /in/3Vilg on line 6 Warning: explode() expects parameter 2 to be string, null given in /in/3Vilg on line 6 Notice: Use of undefined constant count - assumed 'count' in /in/3Vilg on line 8 Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/3Vilg on line 13
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: aa in /in/3Vilg on line 6 Notice: Use of undefined constant count - assumed 'count' in /in/3Vilg on line 8