3v4l.org

run code in 300+ PHP versions simultaneously
<?php $kw = array(array('visits' => 1, 'n' => 'a'), array('visits' => 2, 'n' => 'b'), array('visits' => 100, 'n' => 'c')); foreach($kw as $kw_key => $kw_data){ $v[$kw_key] = $kw_data['v']; } array_multisort($v, SORT_DESC, $kw); print_r($kw);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 8
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/SrcTl
function name:  (null)
number of ops:  18
compiled vars:  !0 = $kw, !1 = $kw_data, !2 = $kw_key, !3 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1      > FE_RESET_R                                       $5      !0, ->8
          2    > > FE_FETCH_R                                       ~6      $5, !1, ->8
          3    >   ASSIGN                                                   !2, ~6
    6     4        FETCH_DIM_R                                      ~9      !1, 'v'
          5        ASSIGN_DIM                                               !3, !2
          6        OP_DATA                                                  ~9
    5     7      > JMP                                                      ->2
          8    >   FE_FREE                                                  $5
    9     9        INIT_FCALL                                               'array_multisort'
         10        SEND_REF                                                 !3
         11        SEND_VAL                                                 3
         12        SEND_REF                                                 !0
         13        DO_ICALL                                                 
   11    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.99 ms | 1395 KiB | 17 Q