3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $_b; function __construc($b) { $this->b = $b; } function __get($name) { echo "get $name \n"; return $this->{'_' . $name}; } function __isset($name) { echo "isset $name\n"; return true; } } class B { private $_c; function __construc($c) { $this->c = $c; } function __get($name) { echo "get $name \n"; return $this->{'_' . $name}; } function __isset($name) { echo "isset $name\n"; return true; } } $c = new B('plop'); $b = new B($c); $a = new A($b); var_dump(isset($a->b->c));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MFFRl
function name:  (null)
number of ops:  18
compiled vars:  !0 = $c, !1 = $b, !2 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   43     0  E >   NEW                                              $3      'B'
          1        SEND_VAL_EX                                              'plop'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
   44     4        NEW                                              $6      'B'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $6
   45     8        NEW                                              $9      'A'
          9        SEND_VAR_EX                                              !1
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !2, $9
   48    12        INIT_FCALL                                               'var_dump'
         13        FETCH_OBJ_IS                                     ~12     !2, 'b'
         14        ISSET_ISEMPTY_PROP_OBJ                           ~13     ~12, 'c'
         15        SEND_VAL                                                 ~13
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Class A:
Function __construc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MFFRl
function name:  __construc
number of ops:  4
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        ASSIGN_OBJ                                               'b'
          2        OP_DATA                                                  !0
    8     3      > RETURN                                                   null

End of function __construc

Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MFFRl
function name:  __get
number of ops:  9
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   11     1        ROPE_INIT                                     3  ~2      'get+'
          2        ROPE_ADD                                      1  ~2      ~2, !0
          3        ROPE_END                                      2  ~1      ~2, '+%0A'
          4        ECHO                                                     ~1
   12     5        CONCAT                                           ~4      '_', !0
          6        FETCH_OBJ_R                                      ~5      ~4
          7      > RETURN                                                   ~5
   14     8*     > RETURN                                                   null

End of function __get

Function __isset:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MFFRl
function name:  __isset
number of ops:  7
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV                                             !0      
   18     1        ROPE_INIT                                     3  ~2      'isset+'
          2        ROPE_ADD                                      1  ~2      ~2, !0
          3        ROPE_END                                      2  ~1      ~2, '%0A'
          4        ECHO                                                     ~1
   19     5      > RETURN                                                   <true>
   20     6*     > RETURN                                                   null

End of function __isset

End of class A.

Class B:
Function __construc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MFFRl
function name:  __construc
number of ops:  4
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   RECV                                             !0      
   29     1        ASSIGN_OBJ                                               'c'
          2        OP_DATA                                                  !0
   30     3      > RETURN                                                   null

End of function __construc

Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MFFRl
function name:  __get
number of ops:  9
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   31     0  E >   RECV                                             !0      
   33     1        ROPE_INIT                                     3  ~2      'get+'
          2        ROPE_ADD                                      1  ~2      ~2, !0
          3        ROPE_END                                      2  ~1      ~2, '+%0A'
          4        ECHO                                                     ~1
   34     5        CONCAT                                           ~4      '_', !0
          6        FETCH_OBJ_R                                      ~5      ~4
          7      > RETURN                                                   ~5
   35     8*     > RETURN                                                   null

End of function __get

Function __isset:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MFFRl
function name:  __isset
number of ops:  7
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   37     0  E >   RECV                                             !0      
   39     1        ROPE_INIT                                     3  ~2      'isset+'
          2        ROPE_ADD                                      1  ~2      ~2, !0
          3        ROPE_END                                      2  ~1      ~2, '%0A'
          4        ECHO                                                     ~1
   40     5      > RETURN                                                   <true>
   41     6*     > RETURN                                                   null

End of function __isset

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.9 ms | 1392 KiB | 15 Q