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); $a = array_filter($a, 'strlen'); return $a; } print_r(array_filter_strlen(array('привет', 'mir', 'i', 'cyberforum'), 3));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => привет [3] => cyberforum )