3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = array ( 'key-0' => 40, 'key-1' => 50, 'key-2' => 10, 'key-3' => 20, 'key-4' => 20, 'key-5' => 30, 'key-6' => 10, 'key-7' => 20, 'key-8' => 40, 'key-9' => 40, ); array_multisort($array, range(1, count($array))); var_export($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LtkIq
function name:  (null)
number of ops:  14
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   16     1        INIT_FCALL                                                   'array_multisort'
          2        SEND_REF                                                     !0
          3        INIT_FCALL                                                   'range'
          4        SEND_VAL                                                     1
          5        COUNT                                                ~2      !0
          6        SEND_VAL                                                     ~2
          7        DO_ICALL                                             $3      
          8        SEND_VAL                                                     $3
          9        DO_ICALL                                                     
   17    10        INIT_FCALL                                                   'var_export'
         11        SEND_VAR                                                     !0
         12        DO_ICALL                                                     
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
182.6 ms | 1656 KiB | 16 Q