3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { var $field = array(1); } $a = new A; $x = array("a" => $a); $y = array("a" => array("field" => array(2))); var_dump(array_merge_recursive($x,$y));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vmrnK
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $x, !2 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $3      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    9     3        INIT_ARRAY                                       ~6      !0, 'a'
          4        ASSIGN                                                   !1, ~6
   11     5        ASSIGN                                                   !2, <array>
   13     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'array_merge_recursive'
          8        SEND_VAR                                                 !1
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $9      
         11        SEND_VAR                                                 $9
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.13 ms | 1394 KiB | 17 Q