3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array ( array( "a"=> 'a', ), array( "b"=> 'b', ), ); var_dump($test); $sortable = array(); foreach ($test as $key => $value) { $sortable[$key] = array_values($value); } var_dump(array_multisort($sortable, SORT_DESC, $test)); var_dump($test);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 14
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/BarYS
function name:  (null)
number of ops:  27
compiled vars:  !0 = $test, !1 = $sortable, !2 = $value, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   12     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   14     4        ASSIGN                                                   !1, <array>
   15     5      > FE_RESET_R                                       $7      !0, ->14
          6    > > FE_FETCH_R                                       ~8      $7, !2, ->14
          7    >   ASSIGN                                                   !3, ~8
   16     8        INIT_FCALL                                               'array_values'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $11     
         11        ASSIGN_DIM                                               !1, !3
         12        OP_DATA                                                  $11
   15    13      > JMP                                                      ->6
         14    >   FE_FREE                                                  $7
   18    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'array_multisort'
         17        SEND_REF                                                 !1
         18        SEND_VAL                                                 3
         19        SEND_REF                                                 !0
         20        DO_ICALL                                         $12     
         21        SEND_VAR                                                 $12
         22        DO_ICALL                                                 
   20    23        INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.39 ms | 1012 KiB | 16 Q