3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = array(1, 2, 3, 4); $arr2 = array(10, 20, 30, 40); $arr3 = array(100, 200, 300, 400); $result = array_map('add_values', $arr1, $arr2, $arr3); function add_values() { return array_sum(func_get_args()); } print_r($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ce2ZM
function name:  (null)
number of ops:  14
compiled vars:  !0 = $arr1, !1 = $arr2, !2 = $arr3, !3 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, <array>
    7     3        INIT_FCALL                                               'array_map'
          4        SEND_VAL                                                 'add_values'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !3, $7
   12    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Function add_values:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ce2ZM
function name:  add_values
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'array_sum'
          1        FUNC_GET_ARGS                                    ~0      
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                         $1      
          4      > RETURN                                                   $1
   10     5*     > RETURN                                                   null

End of function add_values

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.67 ms | 1004 KiB | 16 Q