3v4l.org

run code in 300+ 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:  19
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        INIT_FCALL                                               'property_exists'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 'b'
          6        DO_ICALL                                         $4      
          7        ECHO                                                     $4
    7     8        FETCH_OBJ_R                                      ~5      !0, 'b'
          9        FREE                                                     ~5
    9    10        UNSET_OBJ                                                !0, 'b'
   11    11        INIT_FCALL                                               'property_exists'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 'b'
         14        DO_ICALL                                         $6      
         15        ECHO                                                     $6
   12    16        FETCH_OBJ_R                                      ~7      !0, 'b'
         17        FREE                                                     ~7
         18      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.14 ms | 997 KiB | 14 Q