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 $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/dRKjA
function name:  (null)
number of ops:  22
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>
   13    10        ASSIGN                                                   !0, !2
         11        FETCH_OBJ_R                                      ~12     !1, 'brands_ids2'
         12        ASSIGN_OBJ                                               !1, 'brands_ids'
         13        OP_DATA                                                  ~12
   16    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
   17    17        INIT_FCALL                                               'print_r'
         18        FETCH_OBJ_R                                      ~14     !1, 'brands_ids'
         19        SEND_VAL                                                 ~14
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.02 ms | 1395 KiB | 15 Q