3v4l.org

run code in 300+ PHP versions simultaneously
<?php $menu = [ 1 => [ 'menuName' => 'Apps', 'menuUrl' => '/Apps', 'Invisible_Mode' => '', 'subMenu' => [ [ 'subMenuName' => 'Collaboration', 'subMenuUrl' => '/Apps/Collaboration', 'subitemCount' => 5, 'Invisible_Mode' => '' ], [ 'subMenuName' => 'Sales', 'subMenuUrl' => '/Apps/Sales', 'subitemCount' => 11, 'Invisible_Mode' => '' ], [ 'subMenuName' => 'Project Management', 'subMenuUrl' => '/Apps/Project-Management', 'subitemCount' => 5, 'Invisible_Mode' => '' ], [ 'subMenuName' => 'Human Resources', 'subMenuUrl' => '/Apps/Human-Resources', 'subitemCount' => 7, 'Invisible_Mode' => '' ], [ 'subMenuName' => 'Marketing', 'subMenuUrl' => '/Apps/Marketing', 'subitemCount' => 8, 'Invisible_Mode' => '' ] ] ] ]; var_export( array_map( function ($set) { $set['subMenu'] = array_column($set['subMenu'], null, 'subMenuName'); return $set; }, $menu ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nJ0bQl
function name:  (null)
number of ops:  10
compiled vars:  !0 = $menu
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   43     1        INIT_FCALL                                               'var_export'
   44     2        INIT_FCALL                                               'array_map'
   45     3        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
   48     4        SEND_VAL                                                 ~2
   49     5        SEND_VAR                                                 !0
   44     6        DO_ICALL                                         $3      
   49     7        SEND_VAR                                                 $3
   43     8        DO_ICALL                                                 
   51     9      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nJ0bQl
function name:  {closure}
number of ops:  11
compiled vars:  !0 = $set
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   45     0  E >   RECV                                             !0      
   46     1        INIT_FCALL                                               'array_column'
          2        FETCH_DIM_R                                      ~2      !0, 'subMenu'
          3        SEND_VAL                                                 ~2
          4        SEND_VAL                                                 null
          5        SEND_VAL                                                 'subMenuName'
          6        DO_ICALL                                         $3      
          7        ASSIGN_DIM                                               !0, 'subMenu'
          8        OP_DATA                                                  $3
   47     9      > RETURN                                                   !0
   48    10*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.5 ms | 1012 KiB | 16 Q