3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sort = array(); //並び替え $matome = array(1 =>ACa,2 =>Baa ,3 =>Aaa ); foreach((array) $matome as $key => $value) { $sort[$key] = $value; } array_multisort($sort , SORT_ASC, SORT_STRING | SORT_FLAG_CASE, $matome); print_r($matome);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/JOjiS
function name:  (null)
number of ops:  26
compiled vars:  !0 = $sort, !1 = $matome, !2 = $value, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        FETCH_CONSTANT                                   ~5      'ACa'
          2        INIT_ARRAY                                       ~6      ~5, 1
          3        FETCH_CONSTANT                                   ~7      'Baa'
          4        ADD_ARRAY_ELEMENT                                ~6      ~7, 2
          5        FETCH_CONSTANT                                   ~8      'Aaa'
          6        ADD_ARRAY_ELEMENT                                ~6      ~8, 3
          7        ASSIGN                                                   !1, ~6
    6     8        CAST                                          7  ~10     !1
          9      > FE_RESET_R                                       $11     ~10, ->15
         10    > > FE_FETCH_R                                       ~12     $11, !2, ->15
         11    >   ASSIGN                                                   !3, ~12
    7    12        ASSIGN_DIM                                               !0, !3
         13        OP_DATA                                                  !2
    6    14      > JMP                                                      ->10
         15    >   FE_FREE                                                  $11
    9    16        INIT_FCALL                                               'array_multisort'
         17        SEND_REF                                                 !0
         18        SEND_VAL                                                 4
         19        SEND_VAL                                                 10
         20        SEND_REF                                                 !1
         21        DO_ICALL                                                 
   10    22        INIT_FCALL                                               'print_r'
         23        SEND_VAR                                                 !1
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.07 ms | 1400 KiB | 17 Q