3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static $bar = 5; } class Baz extends Foo { } var_dump(property_exists(new Foo(), 'bar')); var_dump(property_exists('Foo', 'bar')); var_dump(property_exists(new Baz(), 'bar')); var_dump(property_exists('Baz', 'bar'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a5kRu
function name:  (null)
number of ops:  33
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'property_exists'
          2        NEW                                              $0      'Foo'
          3        DO_FCALL                                      0          
          4        SEND_VAR                                                 $0
          5        SEND_VAL                                                 'bar'
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'property_exists'
         11        SEND_VAL                                                 'Foo'
         12        SEND_VAL                                                 'bar'
         13        DO_ICALL                                         $4      
         14        SEND_VAR                                                 $4
         15        DO_ICALL                                                 
    7    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'property_exists'
         18        NEW                                              $6      'Baz'
         19        DO_FCALL                                      0          
         20        SEND_VAR                                                 $6
         21        SEND_VAL                                                 'bar'
         22        DO_ICALL                                         $8      
         23        SEND_VAR                                                 $8
         24        DO_ICALL                                                 
    8    25        INIT_FCALL                                               'var_dump'
         26        INIT_FCALL                                               'property_exists'
         27        SEND_VAL                                                 'Baz'
         28        SEND_VAL                                                 'bar'
         29        DO_ICALL                                         $10     
         30        SEND_VAR                                                 $10
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Class Foo: [no user functions]
Class Baz: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.83 ms | 1396 KiB | 17 Q