3v4l.org

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

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.07 ms | 998 KiB | 15 Q