3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.76 ms | 1386 KiB | 19 Q