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('privet', '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(4) { [0]=> string(6) "privet" [1]=> string(0) "" [2]=> string(0) "" [3]=> string(10) "cyberforum" } Array ( [0] => privet [1] => [2] => [3] => cyberforum )