3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = ['s', 'h', 'c', 'b', 'a', 'b', 'd', 'e', 'f', 'f', 'g']; arsort($array); $array = array_count_values($array); arsort($array, SORT_NUMERIC); var_export($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mDvtN
function name:  (null)
number of ops:  16
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    5     1        INIT_FCALL                                                   'arsort'
          2        SEND_REF                                                     !0
          3        DO_ICALL                                                     
    6     4        INIT_FCALL                                                   'array_count_values'
          5        SEND_VAR                                                     !0
          6        DO_ICALL                                             $3      
          7        ASSIGN                                                       !0, $3
    7     8        INIT_FCALL                                                   'arsort'
          9        SEND_REF                                                     !0
         10        SEND_VAL                                                     1
         11        DO_ICALL                                                     
    8    12        INIT_FCALL                                                   'var_export'
         13        SEND_VAR                                                     !0
         14        DO_ICALL                                                     
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.52 ms | 1783 KiB | 16 Q