3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.52 ms | 1396 KiB | 15 Q