3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { public $untyped; public string $typed; } $c = new C; var_dump( isset( $c->untyped ) ); // false var_dump( isset( $c->typed ) ); // false var_dump( $c->untyped ); // NULL //var_dump( $c->typed ); // Fatal error: Typed property C::$typed must not be accessed before initialization
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VktR8
function name:  (null)
number of ops:  16
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $1      'C'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    9     3        INIT_FCALL                                               'var_dump'
          4        ISSET_ISEMPTY_PROP_OBJ                           ~4      !0, 'untyped'
          5        SEND_VAL                                                 ~4
          6        DO_ICALL                                                 
   10     7        INIT_FCALL                                               'var_dump'
          8        ISSET_ISEMPTY_PROP_OBJ                           ~6      !0, 'typed'
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                                 
   11    11        INIT_FCALL                                               'var_dump'
         12        FETCH_OBJ_R                                      ~8      !0, 'untyped'
         13        SEND_VAL                                                 ~8
         14        DO_ICALL                                                 
   12    15      > RETURN                                                   1

Class C: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
221.83 ms | 1009 KiB | 14 Q