3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arrTags = [ 'mango' => 2, 'orange' => 4, 'apple' => 2, 'banana' => 3, 'guava' => 1, 'grape' => 3, 'watermelon' => 2, 'kiwi' => 5, 'pear' => 3 ]; $k = array_keys($arrTags); $v = array_values($arrTags); array_multisort($k, SORT_ASC, $v, SORT_DESC); var_export(array_combine($k, $v));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NsbqN
function name:  (null)
number of ops:  23
compiled vars:  !0 = $arrTags, !1 = $k, !2 = $v
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   15     1        INIT_FCALL                                                   'array_keys'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                             $4      
          4        ASSIGN                                                       !1, $4
   16     5        INIT_FCALL                                                   'array_values'
          6        SEND_VAR                                                     !0
          7        DO_ICALL                                             $6      
          8        ASSIGN                                                       !2, $6
   17     9        INIT_FCALL                                                   'array_multisort'
         10        SEND_REF                                                     !1
         11        SEND_VAL                                                     4
         12        SEND_REF                                                     !2
         13        SEND_VAL                                                     3
         14        DO_ICALL                                                     
   18    15        INIT_FCALL                                                   'var_export'
         16        INIT_FCALL                                                   'array_combine'
         17        SEND_VAR                                                     !1
         18        SEND_VAR                                                     !2
         19        DO_ICALL                                             $9      
         20        SEND_VAR                                                     $9
         21        DO_ICALL                                                     
         22      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.6 ms | 1999 KiB | 18 Q