3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Data { public $foo = 'bar'; public function wtf() { unset($this->foo); } } $d = new Data; echo $d->foo; var_dump('foo exists', isset($d->foo)); $d->wtf(); echo $d->foo; var_dump('foo exists', isset($d->foo));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iYdvM
function name:  (null)
number of ops:  20
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        FETCH_OBJ_R                                      ~4      !0, 'foo'
          4        ECHO                                                     ~4
   15     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAL                                                 'foo+exists'
          7        ISSET_ISEMPTY_PROP_OBJ                           ~5      !0, 'foo'
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                                 
   17    10        INIT_METHOD_CALL                                         !0, 'wtf'
         11        DO_FCALL                                      0          
   18    12        FETCH_OBJ_R                                      ~8      !0, 'foo'
         13        ECHO                                                     ~8
   19    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAL                                                 'foo+exists'
         16        ISSET_ISEMPTY_PROP_OBJ                           ~9      !0, 'foo'
         17        SEND_VAL                                                 ~9
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Class Data:
Function wtf:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iYdvM
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:
164.18 ms | 1395 KiB | 15 Q