3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 1 => ['Name' => 'John', 'Age' => '20', 'Code' => 'ABC 12'], 2 => ['Name' => 'John', 'Age' => '21', 'Code' => 'ABC 1'], 3 => ['Name' => 'Mary', 'Age' => '20', 'Code' => 'ABC 10'], 4 => ['Name' => 'John', 'Age' => '20', 'Code' => 'ABC 1'], 5 => ['Name' => 'John', 'Age' => '20', 'Code' => 'ABC 100'], 6 => ['Name' => 'John', 'Age' => '20', 'Code' => 'ABC 2'], ]; foreach ($array as ['Name' => $names[], 'Age' => $ages[], 'Code' => $codes[]]); array_multisort( $names, $ages, SORT_DESC, SORT_NUMERIC, $codes, SORT_ASC, SORT_NATURAL, $array ); var_export($array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 14
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/fH7aH
function name:  (null)
number of ops:  29
compiled vars:  !0 = $array, !1 = $names, !2 = $ages, !3 = $codes
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   13     1      > FE_RESET_R                                       $5      !0, ->14
          2    > > FE_FETCH_R                                               $5, $6, ->14
          3    >   FETCH_LIST_R                                     $7      $6, 'Name'
          4        ASSIGN_DIM                                               !1
          5        OP_DATA                                                  $7
          6        FETCH_LIST_R                                     $9      $6, 'Age'
          7        ASSIGN_DIM                                               !2
          8        OP_DATA                                                  $9
          9        FETCH_LIST_R                                     $11     $6, 'Code'
         10        ASSIGN_DIM                                               !3
         11        OP_DATA                                                  $11
         12        FREE                                                     $6
         13      > JMP                                                      ->2
         14    >   FE_FREE                                                  $5
   15    15        INIT_FCALL                                               'array_multisort'
   16    16        SEND_REF                                                 !1
   17    17        SEND_REF                                                 !2
   18    18        SEND_VAL                                                 3
   19    19        SEND_VAL                                                 1
   20    20        SEND_REF                                                 !3
   21    21        SEND_VAL                                                 4
   22    22        SEND_VAL                                                 6
   23    23        SEND_REF                                                 !0
   15    24        DO_ICALL                                                 
   25    25        INIT_FCALL                                               'var_export'
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.4 ms | 1069 KiB | 15 Q