3v4l.org

run code in 300+ PHP versions simultaneously
<?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); echo 'Total Function Count: '. count($length_variance) . PHP_EOL . PHP_EOL; echo "Name Length \t\t Count" . PHP_EOL . PHP_EOL; foreach ($length_variance as $length => $count) { echo $length ."\t\t\t". $count; echo PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 24, Position 2 = 31
Branch analysis from position: 24
2 jumps found. (Code = 78) Position 1 = 25, Position 2 = 31
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
filename:       /in/MhjRU
function name:  (null)
number of ops:  33
compiled vars:  !0 = $internal_functions, !1 = $lengths, !2 = $length_variance, !3 = $count, !4 = $length
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'get_defined_functions'
          1        DO_ICALL                                         $5      
          2        FETCH_DIM_R                                      ~6      $5, 'internal'
          3        ASSIGN                                                   !0, ~6
    5     4        INIT_FCALL                                               'array_map'
    6     5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FMhjRU%3A6%240'
    8     6        SEND_VAL                                                 ~8
    9     7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $9      
    5     9        ASSIGN                                                   !1, $9
   12    10        INIT_FCALL                                               'array_count_values'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $11     
         13        ASSIGN                                                   !2, $11
   13    14        INIT_FCALL                                               'ksort'
         15        SEND_REF                                                 !2
         16        DO_ICALL                                                 
   15    17        COUNT                                            ~14     !2
         18        CONCAT                                           ~15     'Total+Function+Count%3A+', ~14
         19        CONCAT                                           ~16     ~15, '%0A'
         20        CONCAT                                           ~17     ~16, '%0A'
         21        ECHO                                                     ~17
   17    22        ECHO                                                     'Name+Length+%09%09+Count%0A%0A'
   19    23      > FE_RESET_R                                       $18     !2, ->31
         24    > > FE_FETCH_R                                       ~19     $18, !3, ->31
         25    >   ASSIGN                                                   !4, ~19
   20    26        CONCAT                                           ~21     !4, '%09%09%09'
         27        CONCAT                                           ~22     ~21, !3
         28        ECHO                                                     ~22
   21    29        ECHO                                                     '%0A'
   19    30      > JMP                                                      ->24
         31    >   FE_FREE                                                  $18
   22    32      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FMhjRU%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MhjRU
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        STRLEN                                           ~1      !0
          2      > RETURN                                                   ~1
    8     3*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FMhjRU%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.39 ms | 1400 KiB | 21 Q