3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Clazz { public ?int $foo; public function __construct(int $foo) { $this->foo = $foo; } } $class = new Clazz(1); unset($class->foo); echo $class->foo;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V8uuP
function name:  (null)
number of ops:  8
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'Clazz'
          1        SEND_VAL_EX                                              1
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   15     4        UNSET_OBJ                                                !0, 'foo'
   16     5        FETCH_OBJ_R                                      ~4      !0, 'foo'
          6        ECHO                                                     ~4
   17     7      > RETURN                                                   1

Class Clazz:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V8uuP
function name:  __construct
number of ops:  4
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        ASSIGN_OBJ                                               'foo'
          2        OP_DATA                                                  !0
   10     3      > RETURN                                                   null

End of function __construct

End of class Clazz.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.68 ms | 1447 KiB | 13 Q