3v4l.org

run code in 300+ PHP versions simultaneously
<?php class e extends Exception { public function __construct() { parent::__construct(); $this->code = '3'; } } var_dump(unserialize(serialize(new e)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GuaoI
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'unserialize'
          2        INIT_FCALL                                               'serialize'
          3        NEW                                              $0      'e'
          4        DO_FCALL                                      0          
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Class e:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GuaoI
function name:  __construct
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_STATIC_METHOD_CALL                                  
          1        DO_FCALL                                      0          
    5     2        ASSIGN_OBJ                                               'code'
          3        OP_DATA                                                  '3'
    6     4      > RETURN                                                   null

End of function __construct

End of class e.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.67 ms | 1001 KiB | 16 Q