3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function array_filter_strlen($a, $l) { usort($a, 'strlen'); return $a; } print_r(array_filter_strlen(array('привет', 'мир', 'и', 'cyberforum'), 3));
Output for hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Warning: strlen() expects exactly 1 parameter, 2 given in /in/ZaiPV on line 4 Warning: strlen() expects exactly 1 parameter, 2 given in /in/ZaiPV on line 4 Warning: strlen() expects exactly 1 parameter, 2 given in /in/ZaiPV on line 4 Array ( [0] => привет [1] => мир [2] => и [3] => cyberforum )
Output for 5.3.0 - 5.6.28
Warning: strlen() expects exactly 1 parameter, 2 given in /in/ZaiPV on line 4 Warning: strlen() expects exactly 1 parameter, 2 given in /in/ZaiPV on line 4 Warning: strlen() expects exactly 1 parameter, 2 given in /in/ZaiPV on line 4 Warning: strlen() expects exactly 1 parameter, 2 given in /in/ZaiPV on line 4 Array ( [0] => cyberforum [1] => и [2] => мир [3] => привет )
Output for 4.3.0 - 5.2.17
Warning: Wrong parameter count for strlen() in /in/ZaiPV on line 4 Warning: Wrong parameter count for strlen() in /in/ZaiPV on line 4 Warning: Wrong parameter count for strlen() in /in/ZaiPV on line 4 Warning: Wrong parameter count for strlen() in /in/ZaiPV on line 4 Array ( [0] => cyberforum [1] => и [2] => мир [3] => привет )