3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$a = array(array('a' => 1, 'b' => 3), array('c'=> 5, 'd' => 2)); //$b = array('a' => 21, 'b' => 23, 'c'=> 25, 'd' => 22); $a = array(array(1, 3), array(5, 2)); $b = array(array(21, 23), array(25, 22)); //$m = array_merge(array_values($a), array_values($b)); //var_dump(array_merge(array_values($a), array_values($b))); var_dump(array_reduce(array_values($a), 'array_merge', array())); var_dump($a); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/16t3h
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, <array>
    7     1        ASSIGN                                                   !1, <array>
   11     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'array_reduce'
          4        INIT_FCALL                                               'array_values'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        SEND_VAL                                                 'array_merge'
          9        SEND_VAL                                                 <array>
         10        DO_ICALL                                         $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                                 
   12    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
   13    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.81 ms | 1394 KiB | 19 Q