3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a_menu[] = array(['name'=>'Louis Armstrong Jazzfesztivál','link'=>'http://jazzfesztival.hu','class'=>'menu active'], ['name'=>'Jazz & Gospel','link'=>'jazzandgospel.php','class'=>'menu active'], ['name'=>'Hírek','link'=>'index.php','class'=>'menu active'], ['name'=>'Az Alapítvány','link'=>'alapitvany.php','class'=>'menu'], ); function genMenu($a_menu) { foreach ($menu_item as $a_menu){ genMenuPoint($menu_item['name'],$menu_item['link'],$menu_item['class']); } } function genMenuPoint($manu_item) { echo "<a href=\"{$menu_item['link']}\"><li class=\"{$menu_item['class']}\">{$menu_item['name']}</li></a>"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uAKJX
function name:  (null)
number of ops:  3
compiled vars:  !0 = $a_menu
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0
          1        OP_DATA                                                  <array>
   18     2      > RETURN                                                   1

Function genmenu:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 15
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 15
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/uAKJX
function name:  genMenu
number of ops:  17
compiled vars:  !0 = $a_menu, !1 = $menu_item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1      > FE_RESET_R                                       $2      !1, ->15
          2    > > FE_FETCH_R                                               $2, !0, ->15
   10     3    >   INIT_FCALL_BY_NAME                                       'genMenuPoint'
          4        CHECK_FUNC_ARG                                           
          5        FETCH_DIM_FUNC_ARG                               $3      !1, 'name'
          6        SEND_FUNC_ARG                                            $3
          7        CHECK_FUNC_ARG                                           
          8        FETCH_DIM_FUNC_ARG                               $4      !1, 'link'
          9        SEND_FUNC_ARG                                            $4
         10        CHECK_FUNC_ARG                                           
         11        FETCH_DIM_FUNC_ARG                               $5      !1, 'class'
         12        SEND_FUNC_ARG                                            $5
         13        DO_FCALL                                      0          
    9    14      > JMP                                                      ->2
         15    >   FE_FREE                                                  $2
   12    16      > RETURN                                                   null

End of function genmenu

Function genmenupoint:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uAKJX
function name:  genMenuPoint
number of ops:  13
compiled vars:  !0 = $manu_item, !1 = $menu_item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
   16     1        ROPE_INIT                                     7  ~6      '%3Ca+href%3D%22'
          2        FETCH_DIM_R                                      ~2      !1, 'link'
          3        ROPE_ADD                                      1  ~6      ~6, ~2
          4        ROPE_ADD                                      2  ~6      ~6, '%22%3E%3Cli+class%3D%22'
          5        FETCH_DIM_R                                      ~3      !1, 'class'
          6        ROPE_ADD                                      3  ~6      ~6, ~3
          7        ROPE_ADD                                      4  ~6      ~6, '%22%3E'
          8        FETCH_DIM_R                                      ~4      !1, 'name'
          9        ROPE_ADD                                      5  ~6      ~6, ~4
         10        ROPE_END                                      6  ~5      ~6, '%3C%2Fli%3E%3C%2Fa%3E'
         11        ECHO                                                     ~5
   18    12      > RETURN                                                   null

End of function genmenupoint

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.14 ms | 1399 KiB | 13 Q