3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $a = 1; public function __unset($name) { return 'cheese'; } } $foo = new Foo(); $foo->a = null; var_dump($foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DUJtd
function name:  (null)
number of ops:  9
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        ASSIGN_OBJ                                               !0, 'a'
          4        OP_DATA                                                  null
   14     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Class Foo:
Function __unset:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DUJtd
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:
243.03 ms | 1398 KiB | 15 Q