3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ 'd' => [ 'f', 'e', ], 'a' => [ 'c', 'j', ], ]; ksort($array); foreach ($array as $key => &$values) { sort($values, SORT_NATURAL); } print_r($array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 5, Position 2 = 12
Branch analysis from position: 5
2 jumps found. (Code = 126) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/FmGre
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array, !1 = $values, !2 = $key
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   14     1        INIT_FCALL                                                   'ksort'
          2        SEND_REF                                                     !0
          3        DO_ICALL                                                     
   15     4      > FE_RESET_RW                                          $5      !0, ->12
          5    > > FE_FETCH_RW                                          ~6      $5, !1, ->12
          6    >   ASSIGN                                                       !2, ~6
   16     7        INIT_FCALL                                                   'sort'
          8        SEND_REF                                                     !1
          9        SEND_VAL                                                     6
         10        DO_ICALL                                                     
   15    11      > JMP                                                          ->5
         12    >   FE_FREE                                                      $5
   19    13        INIT_FCALL                                                   'print_r'
         14        SEND_VAR                                                     !0
         15        DO_ICALL                                                     
         16      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.52 ms | 2141 KiB | 16 Q