3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $a = 1; public function __unset($name) { return 'cheese'; } } $foo = new Foo(); unset($foo->a); var_dump($foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CqGGV
function name:  (null)
number of ops:  8
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $1      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   12     3        UNSET_OBJ                                                !0, 'a'
   14     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

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

End of function __unset

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.65 ms | 1385 KiB | 15 Q