3v4l.org

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

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.62 ms | 1444 KiB | 16 Q