3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array("Romance" => 2,"Classic" => 1,"Comedy" => 2); array_multisort(array_values($array), SORT_DESC, array_keys($array), SORT_ASC, $array); print_r($array); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WMkYr
function name:  (null)
number of ops:  18
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'array_multisort'
          2        INIT_FCALL                                               'array_values'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_VAL                                                 $2
          6        SEND_VAL                                                 3
          7        INIT_FCALL                                               'array_keys'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $3      
         10        SEND_VAL                                                 $3
         11        SEND_VAL                                                 4
         12        SEND_REF                                                 !0
         13        DO_ICALL                                                 
    4    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
    5    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.49 ms | 1394 KiB | 21 Q