3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first = ['Catalog No.:', 'H-B No.']; $second = [['GG', 692],['VV', 693]]; array_walk_recursive ( $second, fn(&$v, $i) => $v = "{$first[$i]} $v" ); var_export($second);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vu5RE
function name:  (null)
number of ops:  12
compiled vars:  !0 = $first, !1 = $second
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        INIT_FCALL                                               'array_walk_recursive'
    7     3        SEND_REF                                                 !1
    8     4        DECLARE_LAMBDA_FUNCTION                          ~4      [0]
          5        BIND_LEXICAL                                             ~4, !0
    9     6        SEND_VAL                                                 ~4
    6     7        DO_ICALL                                                 
   10     8        INIT_FCALL                                               'var_export'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
         11      > 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/vu5RE
function name:  {closure}
number of ops:  10
compiled vars:  !0 = $v, !1 = $i, !2 = $first
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        BIND_STATIC                                              !2
          3        FETCH_DIM_R                                      ~3      !2, !1
          4        ROPE_INIT                                     3  ~5      ~3
          5        ROPE_ADD                                      1  ~5      ~5, '+'
          6        ROPE_END                                      2  ~4      ~5, !0
          7        ASSIGN                                           ~7      !0, ~4
          8      > RETURN                                                   ~7
    9     9*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.97 ms | 1011 KiB | 15 Q