3v4l.org

run code in 300+ PHP versions simultaneously
<?php $basket = [ 'Items' => [ [ 'a' => 'b', 'b' => 'c', 'd' => 'e' ], [ 'a' => 'b', 'd' => 'e', 'b' => 'c' ], [ 'd' => 'e', 'a' => 'b', 'b' => 'c' ] ], ]; if (isset($basket['items']) && is_array($basket['items'])) { array_walk($basket['items'], 'ksort'); } var_dump($basket);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
Branch analysis from position: 6
filename:       /in/qH8l7
function name:  (null)
number of ops:  16
compiled vars:  !0 = $basket
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   24     1        ISSET_ISEMPTY_DIM_OBJ                         0  ~2      !0, 'items'
          2      > JMPZ_EX                                          ~2      ~2, ->6
          3    >   FETCH_DIM_R                                      ~3      !0, 'items'
          4        TYPE_CHECK                                  128  ~4      ~3
          5        BOOL                                             ~2      ~4
          6    > > JMPZ                                                     ~2, ->12
   25     7    >   INIT_FCALL                                               'array_walk'
          8        FETCH_DIM_W                                      $5      !0, 'items'
          9        SEND_REF                                                 $5
         10        SEND_VAL                                                 'ksort'
         11        DO_ICALL                                                 
   28    12    >   INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.83 ms | 1394 KiB | 17 Q