3v4l.org

run code in 300+ PHP versions simultaneously
<?php $node = new stdClass(); $node->field_test = array('und' => array(0 => array('value' => 'test'))); $clone = clone $node; $clone->field_test['und'] = array(0 => 'modified'); var_export($node); var_export($clone);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/evNng
function name:  (null)
number of ops:  17
compiled vars:  !0 = $node, !1 = $clone
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        ASSIGN_OBJ                                               !0, 'field_test'
          4        OP_DATA                                                  <array>
    5     5        CLONE                                            ~6      !0
          6        ASSIGN                                                   !1, ~6
    6     7        FETCH_OBJ_W                                      $8      !1, 'field_test'
          8        ASSIGN_DIM                                               $8, 'und'
          9        OP_DATA                                                  <array>
    7    10        INIT_FCALL                                               'var_export'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
    8    13        INIT_FCALL                                               'var_export'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.48 ms | 1394 KiB | 15 Q