3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( 0 => array( 'gozhi' => 2, 'uzorong' => 1, 'ngangla' => 4, 'langthel' => 5 ), 1 => array( 'gozhi' => 5, 'uzorong' => 0, 'ngangla' => 3, 'langthel' => 2 ), 2 => array( 'gozhi' => 3, 'uzorong' => 0, 'ngangla' => 1, 'langthel' => 3 ), ); $res = call_user_func_array('array_map', array_merge(array(function() { return array_sum(func_get_args()); }), $data));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NirSI
function name:  (null)
number of ops:  13
compiled vars:  !0 = $data, !1 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   24     1        INIT_FCALL                                               'array_map'
          2        INIT_FCALL                                               'array_merge'
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FNirSI%3A24%240'
   26     4        INIT_ARRAY                                       ~4      ~3
          5        SEND_VAL                                                 ~4
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8        SEND_ARRAY                                               $5
          9        CHECK_UNDEF_ARGS                                         
         10        DO_FCALL                                      0  $6      
   24    11        ASSIGN                                                   !1, $6
   26    12      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FNirSI%3A24%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NirSI
function name:  {closure}
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   INIT_FCALL                                               'array_sum'
          1        FUNC_GET_ARGS                                    ~0      
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                         $1      
          4      > RETURN                                                   $1
   26     5*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FNirSI%3A24%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.34 ms | 1395 KiB | 19 Q