3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = array( 't' => array( 'foo' => 'bar', 'bar' => 'foo', 'kip' => array( 'zonder', 'kop', ), ), 'b' => (object) array_combine(range('a', 'z'), range('a', 'z')), ); $arr2 = array( 't' => array( 'foo' => 'aangepast', ), ); $arr3 = array_merge_recursive($arr1, $arr2); echo'<pre>'; print_r($arr1); echo'<hr/>'; print_r($arr2); echo'<hr/>'; print_r($arr3); echo'<hr/>';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/omREJ
function name:  (null)
number of ops:  36
compiled vars:  !0 = $arr1, !1 = $arr2, !2 = $arr3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_ARRAY                                       ~3      <array>, 't'
   12     1        INIT_FCALL                                               'array_combine'
          2        INIT_FCALL                                               'range'
          3        SEND_VAL                                                 'a'
          4        SEND_VAL                                                 'z'
          5        DO_ICALL                                         $4      
          6        SEND_VAR                                                 $4
          7        INIT_FCALL                                               'range'
          8        SEND_VAL                                                 'a'
          9        SEND_VAL                                                 'z'
         10        DO_ICALL                                         $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                         $6      
         13        CAST                                          8  ~7      $6
         14        ADD_ARRAY_ELEMENT                                ~3      ~7, 'b'
    3    15        ASSIGN                                                   !0, ~3
   15    16        ASSIGN                                                   !1, <array>
   21    17        INIT_FCALL                                               'array_merge_recursive'
         18        SEND_VAR                                                 !0
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                         $10     
         21        ASSIGN                                                   !2, $10
   23    22        ECHO                                                     '%3Cpre%3E'
   24    23        INIT_FCALL                                               'print_r'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                                 
   25    26        ECHO                                                     '%3Chr%2F%3E'
   26    27        INIT_FCALL                                               'print_r'
         28        SEND_VAR                                                 !1
         29        DO_ICALL                                                 
   27    30        ECHO                                                     '%3Chr%2F%3E'
   28    31        INIT_FCALL                                               'print_r'
         32        SEND_VAR                                                 !2
         33        DO_ICALL                                                 
   29    34        ECHO                                                     '%3Chr%2F%3E'
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.06 ms | 941 KiB | 22 Q