3v4l.org

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

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.34 ms | 997 KiB | 15 Q