3v4l.org

run code in 200+ php & hhvm versions
<?php class Foo { public $bar = 1; } $f = new Foo; $f->baz = 2; var_dump($f); unset($f->bar, $f->baz); var_dump($f);
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/t9W0d
function name:  (null)
number of ops:  15
compiled vars:  !0 = $f
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
   8     1        NEW                                              $2      :-6
         2        DO_FCALL                                      0          
         3        ASSIGN                                                   !0, $2
   9     4        ASSIGN_OBJ                                               !0, 'baz'
         5        OP_DATA                                                  2
  11     6        INIT_FCALL                                               'var_dump'
         7        SEND_VAR                                                 !0
         8        DO_ICALL                                                 
  13     9        UNSET_OBJ                                                !0, 'bar'
        10        UNSET_OBJ                                                !0, 'baz'
  15    11        INIT_FCALL                                               'var_dump'
        12        SEND_VAR                                                 !0
        13        DO_ICALL                                                 
        14      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 7.3.0