3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = array( 'D' => array( 'C' => array('c', 'b', 'a'), 'B' => 'bvalue', 'A' => array('a', 'c', 'b'), ), 'C' => 'cvalue', 'B' => 'bvalue', 'A' => array( 'Z' => 'zvalue', 'A' => 'avalue', 'B' => 'bvalue', ) ); function ksort_recursive(&$array) { if (is_array($array)) { ksort($array); array_walk($array, 'ksort_recursive'); } } ksort_recursive($array); var_export($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bogAU
function name:  (null)
number of ops:  8
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   26     1        INIT_FCALL                                                   'ksort_recursive'
          2        SEND_REF                                                     !0
          3        DO_FCALL                                          0          
   27     4        INIT_FCALL                                                   'var_export'
          5        SEND_VAR                                                     !0
          6        DO_ICALL                                                     
          7      > RETURN                                                       1

Function ksort_recursive:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/bogAU
function name:  ksort_recursive
number of ops:  11
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   18     0  E >   RECV                                                 !0      
   20     1        TYPE_CHECK                                      128          !0
          2      > JMPZ                                                         ~1, ->10
   21     3    >   INIT_FCALL                                                   'ksort'
          4        SEND_REF                                                     !0
          5        DO_ICALL                                                     
   22     6        INIT_FCALL                                                   'array_walk'
          7        SEND_REF                                                     !0
          8        SEND_VAL                                                     'ksort_recursive'
          9        DO_ICALL                                                     
   24    10    > > RETURN                                                       null

End of function ksort_recursive

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.51 ms | 1765 KiB | 17 Q