3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = array( 'config' => array( 'settings' => array( 'db' => 'a', 'type' => 'mysql' ), 'something' => 'ok', ) ); $y = array( 'config' => array( 'settings' => array( 'db' => 'b' ) ) ); $result = array_merge( $a, $b ); var_dump( $result );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FZmdp
function name:  (null)
number of ops:  11
compiled vars:  !0 = $x, !1 = $y, !2 = $result, !3 = $a, !4 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   13     1        ASSIGN                                                   !1, <array>
   21     2        INIT_FCALL                                               'array_merge'
          3        SEND_VAR                                                 !3
          4        SEND_VAR                                                 !4
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !2, $7
   23     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.49 ms | 1394 KiB | 17 Q