3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! $tables = array( 0 => array('index_length' => 1, 'data_length' => 2), 1 => array('index_length' => 3, 'data_length' => 4) ); $size = array_reduce($tables, function ($value, $item) { return $value + $item['index_length'] + $item['data_length']; });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BIdbf
function name:  (null)
number of ops:  8
compiled vars:  !0 = $tables, !1 = $size
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'array_reduce'
          2        SEND_VAR                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FBIdbf%3A8%240'
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
          7      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FBIdbf%3A8%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BIdbf
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $value, !1 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        FETCH_DIM_R                                      ~2      !1, 'index_length'
          3        ADD                                              ~3      !0, ~2
          4        FETCH_DIM_R                                      ~4      !1, 'data_length'
          5        ADD                                              ~5      ~3, ~4
          6      > RETURN                                                   ~5
          7*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FBIdbf%3A8%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.72 ms | 1399 KiB | 15 Q