3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $my_array = array("abcd","abc","de","hjjj","g","wer"); $new_array = array_map('strlen', $my_array); print_r($new_array);
based on tGJhM
Output for 4.3.0 - 7.1.0
Array ( [0] => 4 [1] => 3 [2] => 2 [3] => 4 [4] => 1 [5] => 3 )