3v4l.org

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

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

End of function wtf

End of class Data.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.16 ms | 1400 KiB | 17 Q