3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'Nov 18, 2011' => [ 'C' => [ 'T' => 49783.531672, 'X' => 25013.184 ], 'S' => [ 'T' => 32908.863528 ], 'I' => [ 'T' => 44561.52 ] ], 'Nov 22, 2011' => [ 'C' => [ 'T' => -5168.944696 ], 'S' => [ 'T' => -3823.890504 ] ] ]; var_export( array_map( fn($set) => array_sum(array_map(array_sum(...), $set)), $array ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KdE2H
function name:  (null)
number of ops:  10
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   26     1        INIT_FCALL                                               'var_export'
   27     2        INIT_FCALL                                               'array_map'
   28     3        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
          4        SEND_VAL                                                 ~2
   29     5        SEND_VAR                                                 !0
   27     6        DO_ICALL                                         $3      
   29     7        SEND_VAR                                                 $3
   26     8        DO_ICALL                                                 
   31     9      > 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/KdE2H
function name:  {closure}
number of ops:  12
compiled vars:  !0 = $set
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'array_sum'
          2        INIT_FCALL                                               'array_map'
          3        INIT_FCALL                                               'array_sum'
          4        ZEND_CALLABLE_CONVERT                            ~1      
          5        SEND_VAL                                                 ~1
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                         $3      
         10      > RETURN                                                   $3
         11*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.54 ms | 1012 KiB | 16 Q