3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['cs_map_id' => 84, 'cs_subject_id' => 1], ['cs_map_id' => 85, 'cs_subject_id' => 5], ]; $padWith = ['flag' => 1]; var_export( array_map( fn($v) => $v + $padWith, $array ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/F6sWN
function name:  (null)
number of ops:  12
compiled vars:  !0 = $array, !1 = $padWith
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, <array>
   11     2        INIT_FCALL                                               'var_export'
   12     3        INIT_FCALL                                               'array_map'
   13     4        DECLARE_LAMBDA_FUNCTION                          ~4      [0]
          5        BIND_LEXICAL                                             ~4, !1
          6        SEND_VAL                                                 ~4
   14     7        SEND_VAR                                                 !0
   12     8        DO_ICALL                                         $5      
   14     9        SEND_VAR                                                 $5
   11    10        DO_ICALL                                                 
   16    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/F6sWN
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $v, !1 = $padWith
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
          2        ADD                                              ~2      !0, !1
          3      > RETURN                                                   ~2
          4*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.28 ms | 1011 KiB | 15 Q