- array_map: documentation ( source)
- var_dump: documentation ( source)
- get_defined_functions: documentation ( source)
- array_count_values: documentation ( source)
- ksort: documentation ( source)
<?php
$internal_functions = get_defined_functions()['internal'];
$lengths = array_map(
function ($name) {
return strlen($name);
},
$internal_functions
);
$length_variance = array_count_values($lengths);
ksort($length_variance);
var_dump($length_variance);