3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contact = new stdClass(); $magicField = '_' . __CLASS__ . '_' . __FUNCTION__; $contact->{$magicField}->custom->marketing_removed = true; $contact->{$magicField}->logic_hooks->after_save = true; if (isset($contact->{$magicField}) && isset($contact->{$magicField}->logic_hooks) && isset($contact->{$magicField}->logic_hooks->after_save) && $contact->{$magicField}->logic_hooks->after_save) { echo "-1-" . PHP_EOL; if (isset($contact->{$magicField}->custom) && isset($contact->{$magicField}->custom->marketing_removed)) { echo "-2-" . PHP_EOL; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 14, Position 2 = 17
Branch analysis from position: 14
2 jumps found. (Code = 46) Position 1 = 18, Position 2 = 22
Branch analysis from position: 18
2 jumps found. (Code = 46) Position 1 = 23, Position 2 = 27
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 38
Branch analysis from position: 28
2 jumps found. (Code = 46) Position 1 = 32, Position 2 = 36
Branch analysis from position: 32
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 38
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 38
Branch analysis from position: 36
Branch analysis from position: 38
Branch analysis from position: 27
Branch analysis from position: 22
Branch analysis from position: 17
filename:       /in/R3m0L
function name:  (null)
number of ops:  39
compiled vars:  !0 = $contact, !1 = $magicField
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                                                   !1, '__'
    5     4        FETCH_OBJ_W                                      $6      !0, !1
          5        FETCH_OBJ_W                                      $7      $6, 'custom'
          6        ASSIGN_OBJ                                               $7, 'marketing_removed'
          7        OP_DATA                                                  <true>
    6     8        FETCH_OBJ_W                                      $9      !0, !1
          9        FETCH_OBJ_W                                      $10     $9, 'logic_hooks'
         10        ASSIGN_OBJ                                               $10, 'after_save'
         11        OP_DATA                                                  <true>
    8    12        ISSET_ISEMPTY_PROP_OBJ                           ~12     !0, !1
         13      > JMPZ_EX                                          ~12     ~12, ->17
         14    >   FETCH_OBJ_IS                                     ~13     !0, !1
         15        ISSET_ISEMPTY_PROP_OBJ                           ~14     ~13, 'logic_hooks'
         16        BOOL                                             ~12     ~14
         17    > > JMPZ_EX                                          ~12     ~12, ->22
         18    >   FETCH_OBJ_IS                                     ~15     !0, !1
         19        FETCH_OBJ_IS                                     ~16     ~15, 'logic_hooks'
         20        ISSET_ISEMPTY_PROP_OBJ                           ~17     ~16, 'after_save'
         21        BOOL                                             ~12     ~17
         22    > > JMPZ_EX                                          ~12     ~12, ->27
         23    >   FETCH_OBJ_R                                      ~18     !0, !1
         24        FETCH_OBJ_R                                      ~19     ~18, 'logic_hooks'
         25        FETCH_OBJ_R                                      ~20     ~19, 'after_save'
         26        BOOL                                             ~12     ~20
         27    > > JMPZ                                                     ~12, ->38
   10    28    >   ECHO                                                     '-1-%0A'
   12    29        FETCH_OBJ_IS                                     ~21     !0, !1
         30        ISSET_ISEMPTY_PROP_OBJ                           ~22     ~21, 'custom'
         31      > JMPZ_EX                                          ~22     ~22, ->36
         32    >   FETCH_OBJ_IS                                     ~23     !0, !1
         33        FETCH_OBJ_IS                                     ~24     ~23, 'custom'
         34        ISSET_ISEMPTY_PROP_OBJ                           ~25     ~24, 'marketing_removed'
         35        BOOL                                             ~22     ~25
         36    > > JMPZ                                                     ~22, ->38
   14    37    >   ECHO                                                     '-2-%0A'
   16    38    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.59 ms | 1399 KiB | 13 Q