3v4l.org

run code in 300+ PHP versions simultaneously
<?php $brand_names = array(1,2,3); $data->brands_ids = FALSE; if(empty($data->brands_ids)) echo "yes empty"; $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
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/sN8mC
function name:  (null)
number of ops:  34
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                                                  <false>
    6     3        ISSET_ISEMPTY_PROP_OBJ                                   !1, 'brands_ids'
          4      > JMPZ                                                     ~5, ->6
          5    >   ECHO                                                     'yes+empty'
    8     6    >   ASSIGN_OBJ                                               !1, 'brands_ids'
          7        OP_DATA                                                  <array>
   10     8        ASSIGN                                                   !2, !0
          9        FETCH_OBJ_R                                      ~9      !1, 'brands_ids'
         10        ASSIGN_OBJ                                               !1, 'brands_ids2'
         11        OP_DATA                                                  ~9
   12    12        ASSIGN                                                   !0, <array>
   13    13        ASSIGN_OBJ                                               !1, 'brands_ids'
         14        OP_DATA                                                  <array>
   15    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
   16    18        INIT_FCALL                                               'print_r'
         19        FETCH_OBJ_R                                      ~13     !1, 'brands_ids'
         20        SEND_VAL                                                 ~13
         21        DO_ICALL                                                 
   19    22        ASSIGN                                                   !0, !2
         23        FETCH_OBJ_R                                      ~17     !1, 'brands_ids2'
         24        ASSIGN_OBJ                                               !1, 'brands_ids'
         25        OP_DATA                                                  ~17
   22    26        INIT_FCALL                                               'print_r'
         27        SEND_VAR                                                 !0
         28        DO_ICALL                                                 
   23    29        INIT_FCALL                                               'print_r'
         30        FETCH_OBJ_R                                      ~19     !1, 'brands_ids'
         31        SEND_VAL                                                 ~19
         32        DO_ICALL                                                 
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.65 ms | 1396 KiB | 15 Q