3v4l.org

run code in 300+ PHP versions simultaneously
<?php class D { public function __get($name) { echo "D::__get($name)\n"; } public function __destruct() { echo "D::__destruct\n"; } public function __wakeup() { echo "D::__wakeup\n"; } } class C { public function __destruct() { echo "C::__destruct\n"; $this->c->b; } } unserialize('O:1:"C":1:{s:1:"c";O:1:"D":0:{};N;}');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M9bQJ
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   INIT_FCALL                                               'unserialize'
          1        SEND_VAL                                                 'O%3A1%3A%22C%22%3A1%3A%7Bs%3A1%3A%22c%22%3BO%3A1%3A%22D%22%3A0%3A%7B%7D%3BN%3B%7D'
          2        DO_ICALL                                                 
          3      > RETURN                                                   1

Class D:
Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M9bQJ
function name:  __get
number of ops:  6
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ROPE_INIT                                     3  ~2      'D%3A%3A__get%28'
          2        ROPE_ADD                                      1  ~2      ~2, !0
          3        ROPE_END                                      2  ~1      ~2, '%29%0A'
          4        ECHO                                                     ~1
    7     5      > RETURN                                                   null

End of function __get

Function __destruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M9bQJ
function name:  __destruct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     'D%3A%3A__destruct%0A'
   10     1      > RETURN                                                   null

End of function __destruct

Function __wakeup:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M9bQJ
function name:  __wakeup
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ECHO                                                     'D%3A%3A__wakeup%0A'
   13     1      > RETURN                                                   null

End of function __wakeup

End of class D.

Class C:
Function __destruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M9bQJ
function name:  __destruct
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   ECHO                                                     'C%3A%3A__destruct%0A'
   19     1        FETCH_OBJ_R                                      ~0      'c'
          2        FETCH_OBJ_R                                      ~1      ~0, 'b'
          3        FREE                                                     ~1
   21     4      > RETURN                                                   null

End of function __destruct

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.71 ms | 1396 KiB | 15 Q