3v4l.org

run code in 300+ PHP versions simultaneously
<?php function mft($a, $b = []) { return "hello"; //var_export($a, true); } $teams = []; $teams['A'] = ["A1", "A2", "A3", "A4"]; $teams['B'] = ["B1", "B2", "B3"]; $teams['C'] = ["C1", "C2", "C3"]; print mft($teams['A']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UlkTU
function name:  (null)
number of ops:  13
compiled vars:  !0 = $teams
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN                                                   !0, <array>
   12     1        ASSIGN_DIM                                               !0, 'A'
          2        OP_DATA                                                  <array>
   13     3        ASSIGN_DIM                                               !0, 'B'
          4        OP_DATA                                                  <array>
   14     5        ASSIGN_DIM                                               !0, 'C'
          6        OP_DATA                                                  <array>
   17     7        INIT_FCALL                                               'mft'
          8        FETCH_DIM_R                                      ~5      !0, 'A'
          9        SEND_VAL                                                 ~5
         10        DO_FCALL                                      0  $6      
         11        ECHO                                                     $6
         12      > RETURN                                                   1

Function mft:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UlkTU
function name:  mft
number of ops:  4
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      <array>
    8     2      > RETURN                                                   'hello'
    9     3*     > RETURN                                                   null

End of function mft

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.31 ms | 1397 KiB | 14 Q