3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.04 ms | 2988 KiB | 15 Q