3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function array_filter_strlen($a, $l) { $a = preg_replace('/^.{0, 3}$/u', '', $a); var_dump($a); return $a; } print_r(array_filter_strlen(array('привет', 'мир', 'и', 'cyberforum'), 3));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(4) { [0]=> string(12) "привет" [1]=> string(6) "мир" [2]=> string(2) "и" [3]=> string(10) "cyberforum" } Array ( [0] => привет [1] => мир [2] => и [3] => cyberforum )