3v4l.org

run code in 300+ PHP versions simultaneously
<?php $brand_names = array(1,2,3); $data->brands_ids = array("A","B","C"); $brand_names2 = $brand_names; $data->brands_ids2 = $data->brands_ids; // TODO remove after test $brand_names = array(); // TODO remove after test $data->brands_ids = array(0, 0); // TODO remove after test print_r($brand_names); print_r($data->brands_ids); $brand_names = $brand_names2; $data->brands_ids = $data->brands_ids2; // TODO remove after test print_r($brand_names); print_r($data->brands_ids);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FOmKu
function name:  (null)
number of ops:  29
compiled vars:  !0 = $brand_names, !1 = $data, !2 = $brand_names2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN_OBJ                                               !1, 'brands_ids'
          2        OP_DATA                                                  <array>
    7     3        ASSIGN                                                   !2, !0
          4        FETCH_OBJ_R                                      ~7      !1, 'brands_ids'
          5        ASSIGN_OBJ                                               !1, 'brands_ids2'
          6        OP_DATA                                                  ~7
    9     7        ASSIGN                                                   !0, <array>
   10     8        ASSIGN_OBJ                                               !1, 'brands_ids'
          9        OP_DATA                                                  <array>
   12    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
   13    13        INIT_FCALL                                               'print_r'
         14        FETCH_OBJ_R                                      ~11     !1, 'brands_ids'
         15        SEND_VAL                                                 ~11
         16        DO_ICALL                                                 
   16    17        ASSIGN                                                   !0, !2
         18        FETCH_OBJ_R                                      ~15     !1, 'brands_ids2'
         19        ASSIGN_OBJ                                               !1, 'brands_ids'
         20        OP_DATA                                                  ~15
   19    21        INIT_FCALL                                               'print_r'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                                 
   20    24        INIT_FCALL                                               'print_r'
         25        FETCH_OBJ_R                                      ~17     !1, 'brands_ids'
         26        SEND_VAL                                                 ~17
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.16 ms | 1400 KiB | 15 Q