3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { public $bar; public function __get($name) { return 123; } } $foo = new Foo(); unset($foo->bar); var_dump($foo->bar); // int(123) $foo = new Foo(); var_dump($foo->bar);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YpfYe
function name:  (null)
number of ops:  16
compiled vars:  !0 = $foo
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   NEW                                                  $1      'Foo'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   13     3        UNSET_OBJ                                                    !0, 'bar'
   14     4        INIT_FCALL                                                   'var_dump'
          5        FETCH_OBJ_R                                          ~4      !0, 'bar'
          6        SEND_VAL                                                     ~4
          7        DO_ICALL                                                     
   16     8        NEW                                                  $6      'Foo'
          9        DO_FCALL                                          0          
         10        ASSIGN                                                       !0, $6
   17    11        INIT_FCALL                                                   'var_dump'
         12        FETCH_OBJ_R                                          ~9      !0, 'bar'
         13        SEND_VAL                                                     ~9
         14        DO_ICALL                                                     
         15      > RETURN                                                       1

Class Foo:
Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YpfYe
function name:  __get
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                                                       123
    9     2*     > RETURN                                                       null

End of function __get

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.91 ms | 2225 KiB | 14 Q