3v4l.org

run code in 300+ PHP versions simultaneously
<?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
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t9W0d
function name:  (null)
number of ops:  14
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $1      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    9     3        ASSIGN_OBJ                                               !0, 'baz'
          4        OP_DATA                                                  2
   11     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
   13     8        UNSET_OBJ                                                !0, 'bar'
          9        UNSET_OBJ                                                !0, 'baz'
   15    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.53 ms | 1409 KiB | 15 Q