3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contacts = []; $contacts[0] = []; $contacts[1] = []; $contacts[2] = []; $contacts[0][] = 2; $contacts[1][] = 6; $contacts[2][] = 3; $contacts[0][] = 'Bldo'; $contacts[1][] = 'Cldo'; $contacts[2][] = 'Aldo'; $keys = array_column($contacts, 1); array_multisort($keys, SORT_ASC, $contacts); print_r($contacts);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YVhPU
function name:  (null)
number of ops:  39
compiled vars:  !0 = $contacts, !1 = $keys
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN_DIM                                               !0, 0
          2        OP_DATA                                                  <array>
    5     3        ASSIGN_DIM                                               !0, 1
          4        OP_DATA                                                  <array>
    6     5        ASSIGN_DIM                                               !0, 2
          6        OP_DATA                                                  <array>
    8     7        FETCH_DIM_W                                      $6      !0, 0
          8        ASSIGN_DIM                                               $6
          9        OP_DATA                                                  2
    9    10        FETCH_DIM_W                                      $8      !0, 1
         11        ASSIGN_DIM                                               $8
         12        OP_DATA                                                  6
   10    13        FETCH_DIM_W                                      $10     !0, 2
         14        ASSIGN_DIM                                               $10
         15        OP_DATA                                                  3
   12    16        FETCH_DIM_W                                      $12     !0, 0
         17        ASSIGN_DIM                                               $12
         18        OP_DATA                                                  'Bldo'
   13    19        FETCH_DIM_W                                      $14     !0, 1
         20        ASSIGN_DIM                                               $14
         21        OP_DATA                                                  'Cldo'
   14    22        FETCH_DIM_W                                      $16     !0, 2
         23        ASSIGN_DIM                                               $16
         24        OP_DATA                                                  'Aldo'
   17    25        INIT_FCALL                                               'array_column'
         26        SEND_VAR                                                 !0
         27        SEND_VAL                                                 1
         28        DO_ICALL                                         $18     
         29        ASSIGN                                                   !1, $18
   19    30        INIT_FCALL                                               'array_multisort'
         31        SEND_REF                                                 !1
         32        SEND_VAL                                                 4
         33        SEND_REF                                                 !0
         34        DO_ICALL                                                 
   21    35        INIT_FCALL                                               'print_r'
         36        SEND_VAR                                                 !0
         37        DO_ICALL                                                 
         38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.96 ms | 1005 KiB | 16 Q