3v4l.org

run code in 300+ PHP versions simultaneously
<?php list($arr1, $arr2) = [ [ '1', '2' ], [ '10' ] ]; array_map(function($item1, $item2){ var_dump(func_get_args()); }, $arr2, $arr2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IuZpt
function name:  (null)
number of ops:  11
compiled vars:  !0 = $arr1, !1 = $arr2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   FETCH_LIST_R                                     $2      <array>, 0
    3     1        ASSIGN                                                   !0, $2
          2        FETCH_LIST_R                                     $4      <array>, 1
          3        ASSIGN                                                   !1, $4
   13     4        INIT_FCALL                                               'array_map'
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FIuZpt%3A13%240'
   15     6        SEND_VAL                                                 ~6
          7        SEND_VAR                                                 !1
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FIuZpt%3A13%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IuZpt
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $item1, !1 = $item2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   14     2        INIT_FCALL                                               'var_dump'
          3        FUNC_GET_ARGS                                    ~2      
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
   15     6      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FIuZpt%3A13%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.87 ms | 1395 KiB | 17 Q