3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
237.31 ms | 1395 KiB | 17 Q