3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrays = [ [ "a1" => true, "b1" => "abc", "c1" => "def" ], [ "a2" => true, "b2" => "fgh", "c2" => "ijk", "d2" => "lmn", "e2" => "opq" ] ]; $result = array_reduce($arrays, function ($carry, $item) { $carry += $item; return $carry; }, []); var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2jatR
function name:  (null)
number of ops:  12
compiled vars:  !0 = $arrays, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   18     1        INIT_FCALL                                               'array_reduce'
          2        SEND_VAR                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F2jatR%3A18%240'
   21     4        SEND_VAL                                                 ~3
          5        SEND_VAL                                                 <array>
          6        DO_ICALL                                         $4      
   18     7        ASSIGN                                                   !1, $4
   23     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2F2jatR%3A18%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.4 ms | 1395 KiB | 17 Q