3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ public string $x; } $A = new A; var_dump(property_exists($A,'x'));//true var_dump($A); //class A#1 (1) {} // - it counts the property, but hides it var_dump(new stdClass()); //class stdClass#1 (0) {} - empty object
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gvDf5
function name:  (null)
number of ops:  19
compiled vars:  !0 = $A
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $1      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    7     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'property_exists'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 'x'
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                                 
    8    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
    9    13        INIT_FCALL                                               'var_dump'
         14        NEW                                              $7      'stdClass'
         15        DO_FCALL                                      0          
         16        SEND_VAR                                                 $7
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.76 ms | 998 KiB | 15 Q