3v4l.org

run code in 300+ PHP versions simultaneously
<?php $results = array( array( array('foo1'), array('foo2'), ), array( array('bar1'), array('bar2'), ), ); $rows = call_user_func_array('array_merge', $results); print_r($rows); print_r(array_merge($results[0], $results[1]));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LLIfg
function name:  (null)
number of ops:  19
compiled vars:  !0 = $results, !1 = $rows
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   13     1        INIT_FCALL                                               'array_merge'
          2        SEND_ARRAY                                               !0
          3        CHECK_UNDEF_ARGS                                         
          4        DO_FCALL                                      0  $3      
          5        ASSIGN                                                   !1, $3
   14     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
   16     9        INIT_FCALL                                               'print_r'
         10        INIT_FCALL                                               'array_merge'
         11        FETCH_DIM_R                                      ~6      !0, 0
         12        SEND_VAL                                                 ~6
         13        FETCH_DIM_R                                      ~7      !0, 1
         14        SEND_VAL                                                 ~7
         15        DO_ICALL                                         $8      
         16        SEND_VAR                                                 $8
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.83 ms | 1386 KiB | 17 Q