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); var_dump($length_variance);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CGaMW
function name:  (null)
number of ops:  21
compiled vars:  !0 = $internal_functions, !1 = $lengths, !2 = $length_variance
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'get_defined_functions'
          1        DO_ICALL                                         $3      
          2        FETCH_DIM_R                                      ~4      $3, 'internal'
          3        ASSIGN                                                   !0, ~4
    5     4        INIT_FCALL                                               'array_map'
    6     5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FCGaMW%3A6%240'
    8     6        SEND_VAL                                                 ~6
    9     7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $7      
    5     9        ASSIGN                                                   !1, $7
   12    10        INIT_FCALL                                               'array_count_values'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !2, $9
   13    14        INIT_FCALL                                               'ksort'
         15        SEND_REF                                                 !2
         16        DO_ICALL                                                 
   15    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.53 ms | 1400 KiB | 23 Q