3v4l.org

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

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