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; foreach ($length_variance as $length => $count) { echo 'Name Length: '. $length; echo "\t\t Count:". $count; echo PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 23, Position 2 = 31
Branch analysis from position: 23
2 jumps found. (Code = 78) Position 1 = 24, Position 2 = 31
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
filename:       /in/JPovD
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%2FJPovD%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      > FE_RESET_R                                       $18     !2, ->31
         23    > > FE_FETCH_R                                       ~19     $18, !3, ->31
         24    >   ASSIGN                                                   !4, ~19
   18    25        CONCAT                                           ~21     'Name+Length%3A+', !4
         26        ECHO                                                     ~21
   19    27        CONCAT                                           ~22     '%09%09+Count%3A', !3
         28        ECHO                                                     ~22
   20    29        ECHO                                                     '%0A'
   17    30      > JMP                                                      ->23
         31    >   FE_FREE                                                  $18
   21    32      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FJPovD%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JPovD
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%2FJPovD%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.95 ms | 1400 KiB | 21 Q