3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { public $b; }; $a = new A; echo property_exists($a, 'b'); // Returns '1' $a->b; // Remains silent unset($a->b); echo property_exists($a, 'b'); // Still returns '1' $a->b; // Cause a "Notice: Undefined property A::$b"
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3sAs5
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   NEW                                                  $1      'A'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
    6     3        FRAMELESS_ICALL_2                property_exists      ~4      !0, 'b'
          4        ECHO                                                         ~4
    7     5        FETCH_OBJ_R                                          ~5      !0, 'b'
          6        FREE                                                         ~5
    9     7        UNSET_OBJ                                                    !0, 'b'
   11     8        FRAMELESS_ICALL_2                property_exists      ~6      !0, 'b'
          9        ECHO                                                         ~6
   12    10        FETCH_OBJ_R                                          ~7      !0, 'b'
         11        FREE                                                         ~7
         12      > RETURN                                                       1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.92 ms | 2408 KiB | 15 Q