3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testSite = array( 'name' => 'test site', 'modules' => array( 'foo' => 'true', 'bar' => 'true' ) ); $testData = array( 'modules' => array( 'bar' => 'false' ) ); var_dump('before', $testSite); $testSite = array_merge($testSite, $testData); var_dump('after', $testSite);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kWHUd
function name:  (null)
number of ops:  16
compiled vars:  !0 = $testSite, !1 = $testData
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    9     1        ASSIGN                                                   !1, <array>
   15     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAL                                                 'before'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
   16     6        INIT_FCALL                                               'array_merge'
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !0, $5
   17    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAL                                                 'after'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.94 ms | 1385 KiB | 17 Q