3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Data { //public $foo = 'bar'; public function wtf() { unset($this->foo); } } $d = new Data; $d->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
Jump found. Position 1 = -2
filename:       /in/FlF0U
function name:  (null)
number of ops:  25
compiled vars:  !0 = $d
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
  12     1        NEW                                              $2      :-6
         2        DO_FCALL                                      0          
         3        ASSIGN                                                   !0, $2
  13     4        ASSIGN_OBJ                                               !0, 'foo'
         5        OP_DATA                                                  'bar'
  15     6        INIT_FCALL                                               'var_dump'
         7        SEND_VAL                                                 'foo+exists'
         8        INIT_FCALL                                               'property_exists'
         9        SEND_VAR                                                 !0
        10        SEND_VAL                                                 'foo'
        11        DO_ICALL                                         $6      
        12        SEND_VAR                                                 $6
        13        DO_ICALL                                                 
  17    14        INIT_METHOD_CALL                                         !0, 'wtf'
        15        DO_FCALL                                      0          
  19    16        INIT_FCALL                                               'var_dump'
        17        SEND_VAL                                                 'foo+exists'
        18        INIT_FCALL                                               'property_exists'
        19        SEND_VAR                                                 !0
        20        SEND_VAL                                                 'foo'
        21        DO_ICALL                                         $9      
        22        SEND_VAR                                                 $9
        23        DO_ICALL                                                 
        24      > RETURN                                                   1

Class Data:
Function wtf:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/FlF0U
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 7.2.0