3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ [1 => 'one', 2 => 'two', 3 => 'three'] ]; var_export(array_map(fn() => func_get_args(), ...$array)); echo "\n---\n"; var_export(array_map(null, ...$array));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6HCKh
function name:  (null)
number of ops:  20
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    6     1        INIT_FCALL                                                   'var_export'
          2        INIT_FCALL                                                   'array_map'
          3        DECLARE_LAMBDA_FUNCTION                              ~2      [0]
          4        SEND_VAL                                                     ~2
          5        SEND_UNPACK                                                  !0
          6        CHECK_UNDEF_ARGS                                             
          7        DO_ICALL                                             $3      
          8        SEND_VAR                                                     $3
          9        DO_ICALL                                                     
    7    10        ECHO                                                         '%0A---%0A'
    8    11        INIT_FCALL                                                   'var_export'
         12        INIT_FCALL                                                   'array_map'
         13        SEND_VAL                                                     null
         14        SEND_UNPACK                                                  !0
         15        CHECK_UNDEF_ARGS                                             
         16        DO_ICALL                                             $5      
         17        SEND_VAR                                                     $5
         18        DO_ICALL                                                     
         19      > 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/6HCKh
function name:  {closure:/in/6HCKh:6}
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   FUNC_GET_ARGS                                        ~0      
          1      > RETURN                                                       ~0
          2*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.78 ms | 1887 KiB | 15 Q