3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Data { public $foo = 'bar'; public function wtf() { unset($this->foo); } } $d = new Data; var_dump('foo exists', property_exists((object)$d, 'foo')); var_dump('data object', $d); $d->wtf(); var_dump('foo exists', property_exists((object)$d, 'foo')); var_dump('data object', $d);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1XhAO
function name:  (null)
number of ops:  32
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $1      'Data'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   14     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAL                                                 'foo+exists'
          5        INIT_FCALL                                               'property_exists'
          6        CAST                                          8  ~4      !0
          7        SEND_VAL                                                 ~4
          8        SEND_VAL                                                 'foo'
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
   15    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAL                                                 'data+object'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
   17    16        INIT_METHOD_CALL                                         !0, 'wtf'
         17        DO_FCALL                                      0          
   19    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAL                                                 'foo+exists'
         20        INIT_FCALL                                               'property_exists'
         21        CAST                                          8  ~9      !0
         22        SEND_VAL                                                 ~9
         23        SEND_VAL                                                 'foo'
         24        DO_ICALL                                         $10     
         25        SEND_VAR                                                 $10
         26        DO_ICALL                                                 
   20    27        INIT_FCALL                                               'var_dump'
         28        SEND_VAL                                                 'data+object'
         29        SEND_VAR                                                 !0
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Class Data:
Function wtf:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1XhAO
function name:  wtf
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   UNSET_OBJ                                                'foo'
    9     1      > RETURN                                                   null

End of function wtf

End of class Data.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.56 ms | 1396 KiB | 17 Q