3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 147 => [ "pts_m" => "", "pts_mreg" => 1, "pts_cg" => 1 ], 158 => [ "pts_m" => null , "pts_mreg" => null, "pts_cg" => 0 ], 159 => [ "pts_m" => "", "pts_mreg" => 1, "pts_cg" => 1 ] ]; var_export( array_sum( array_map(array_sum(...), $array) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sijP3
function name:  (null)
number of ops:  14
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   21     1        INIT_FCALL                                               'var_export'
   22     2        INIT_FCALL                                               'array_sum'
   23     3        INIT_FCALL                                               'array_map'
          4        INIT_FCALL                                               'array_sum'
          5        ZEND_CALLABLE_CONVERT                            ~2      
          6        SEND_VAL                                                 ~2
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
   22    10        DO_ICALL                                         $4      
   23    11        SEND_VAR                                                 $4
   21    12        DO_ICALL                                                 
   25    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.51 ms | 1460 KiB | 16 Q