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);exit; // Show maximum and minimum string length using max() function and min() function echo "The shortest array length is " . min($new_array) . ". The longest array length is " . max($new_array).'.'; ?>
based on UlW6Q
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Array ( [0] => 4 [1] => 3 [2] => 2 [3] => 4 [4] => 1 [5] => 3 )
Output for hhvm-3.10.0

Process exited with code 153.