3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Wakeup { public $b; public $e; function __construct() { $this->b = new B; $this->e = new E; } } class B { function __wakeup() { echo 'B::__wakeup'; // throw new ReactException; // throw new ReactExceptionB; } } class D { } class E extends D { function __wakeup() { echo 'E::__wakeup'; } } unserialize('O:6:"Wakeup":2:{s:1:"b";O:1:"B":0:{}s:1:"e";O:1:"E":0:{}}');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qOud3
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   34     0  E >   INIT_FCALL                                               'unserialize'
          1        SEND_VAL                                                 'O%3A6%3A%22Wakeup%22%3A2%3A%7Bs%3A1%3A%22b%22%3BO%3A1%3A%22B%22%3A0%3A%7B%7Ds%3A1%3A%22e%22%3BO%3A1%3A%22E%22%3A0%3A%7B%7D%7D'
          2        DO_ICALL                                                 
          3      > RETURN                                                   1

Class Wakeup:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qOud3
function name:  __construct
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $1      'B'
          1        DO_FCALL                                      0          
          2        ASSIGN_OBJ                                               'b'
          3        OP_DATA                                                  $1
   11     4        NEW                                              $4      'E'
          5        DO_FCALL                                      0          
          6        ASSIGN_OBJ                                               'e'
          7        OP_DATA                                                  $4
   12     8      > RETURN                                                   null

End of function __construct

End of class Wakeup.

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

End of function __wakeup

End of class B.

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

End of function __wakeup

End of class E.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.97 ms | 1396 KiB | 15 Q