3v4l.org

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

Class Example:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lAIEX
function name:  __construct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   UNSET_OBJ                                                'unset'
   11     1      > RETURN                                                   null

End of function __construct

End of class Example.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.94 ms | 1395 KiB | 19 Q