3v4l.org

run code in 300+ PHP versions simultaneously
<?php //07.arrays_menu.php $menu = [ 'shake' => [ 'vanilla ice cream', 'milk', ], 'tiramisu' => [ 'instant-espresso powder', 'sugar', '4 large egg', 'heavy cream', ], 'burger' => [ 'beef patty', 'lettuce', 'tomatoes', 'buns', ], ]; ksort($menu); print_r($menu);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I3rvQ
function name:  (null)
number of ops:  8
compiled vars:  !0 = $menu
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
   23     1        INIT_FCALL                                               'ksort'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                                 
   25     4        INIT_FCALL                                               'print_r'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.28 ms | 1436 KiB | 15 Q