3v4l.org

run code in 300+ PHP versions simultaneously
<? $text_res = array( 'eng' => array('chapter' => 'Chapter'), 'rus' => array('chapter' => 'Глава') ); function get_text_sub_header($lang) { return $lang."=".$text_res[$lang]['chapter']; } echo get_text_sub_header('eng'); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gIuYg
function name:  (null)
number of ops:  6
compiled vars:  !0 = $text_res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   14     1        INIT_FCALL                                               'get_text_sub_header'
          2        SEND_VAL                                                 'eng'
          3        DO_FCALL                                      0  $2      
          4        ECHO                                                     $2
   16     5      > RETURN                                                   1

Function get_text_sub_header:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gIuYg
function name:  get_text_sub_header
number of ops:  7
compiled vars:  !0 = $lang, !1 = $text_res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   11     1        CONCAT                                           ~2      !0, '%3D'
          2        FETCH_DIM_R                                      ~3      !1, !0
          3        FETCH_DIM_R                                      ~4      ~3, 'chapter'
          4        CONCAT                                           ~5      ~2, ~4
          5      > RETURN                                                   ~5
   12     6*     > RETURN                                                   null

End of function get_text_sub_header

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.89 ms | 1397 KiB | 14 Q