3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ public string $x; } 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/vjSWN
function name:  (null)
number of ops:  16
compiled vars:  !0 = $A
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'property_exists'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'x'
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        DO_ICALL                                                 
    8     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
    9    10        INIT_FCALL                                               'var_dump'
         11        NEW                                              $4      'stdClass'
         12        DO_FCALL                                      0          
         13        SEND_VAR                                                 $4
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.42 ms | 1394 KiB | 17 Q