3v4l.org

run code in 300+ PHP versions simultaneously
; <?php $arrays = array( 0 => array( 0 => 'one', 1 => 'two', 2 => 'three' ), 1 => array( 0 => 'four', 1 => 'five', 2 => 'six' ), 2 => array( 0 => 'seven', 1 => 'eight', 2 => 'nine' ) ); print_r(array_reduce($arrays, function($carry, $item) { $carry += $item; return $carry; }));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RouHp
function name:  (null)
number of ops:  11
compiled vars:  !0 = $arrays
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3B+'
    3     1        ASSIGN                                                   !0, <array>
    9     2        INIT_FCALL                                               'print_r'
          3        INIT_FCALL                                               'array_reduce'
          4        SEND_VAR                                                 !0
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FRouHp%3A9%240'
          6        SEND_VAL                                                 ~2
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FRouHp%3A9%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RouHp
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $carry, !1 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        ASSIGN_OP                                     1          !0, !1
          3      > RETURN                                                   !0
          4*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FRouHp%3A9%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.11 ms | 1386 KiB | 17 Q