3v4l.org

run code in 500+ PHP versions simultaneously
<?php $words=['MVW','MWAH','MWAH','MYW','MW','MY9AH','MYQAH','MYQAH','MY9AH','MYQAH', 'MYQAH','MWAH','MYQAH','MYSWI','MYQAH','MYQAH','MW','MW','MW','MW']; echo implode( array_map(function(){ $occurrences=count_chars(implode(func_get_args()),1); arsort($occurrences); return chr(key($occurrences)); }, ...array_map('str_split',$words) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mHeZf
function name:  (null)
number of ops:  14
compiled vars:  !0 = $words
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    6     1        INIT_FCALL                                                   'array_map'
          2        DECLARE_LAMBDA_FUNCTION                              ~2      [0]
   10     3        SEND_VAL                                                     ~2
   11     4        INIT_FCALL                                                   'array_map'
          5        SEND_VAL                                                     'str_split'
          6        SEND_VAR                                                     !0
          7        DO_ICALL                                             $3      
          8        SEND_UNPACK                                                  $3
          9        CHECK_UNDEF_ARGS                                             
    6    10        DO_ICALL                                             $4      
    5    11        FRAMELESS_ICALL_1                implode             ~5      $4
   11    12        ECHO                                                         ~5
   13    13      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mHeZf
function name:  {closure:/in/mHeZf:6}
number of ops:  18
compiled vars:  !0 = $occurrences
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                                   'count_chars'
          1        FUNC_GET_ARGS                                        ~1      
          2        FRAMELESS_ICALL_1                implode             ~2      ~1
          3        SEND_VAL                                                     ~2
          4        SEND_VAL                                                     1
          5        DO_ICALL                                             $3      
          6        ASSIGN                                                       !0, $3
    8     7        INIT_FCALL                                                   'arsort'
          8        SEND_REF                                                     !0
          9        DO_ICALL                                                     
    9    10        INIT_FCALL                                                   'chr'
         11        INIT_FCALL                                                   'key'
         12        SEND_VAR                                                     !0
         13        DO_ICALL                                             $6      
         14        SEND_VAR                                                     $6
         15        DO_ICALL                                             $7      
         16      > RETURN                                                       $7
   10    17*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
175.85 ms | 2542 KiB | 18 Q