3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { public ?string $x; } var_dump(((new ReflectionClass(Foo::class))->getProperty('x'))->getDefaultValue());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G2R3l
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                                   'var_dump'
          1        NEW                                                  $0      'ReflectionClass'
          2        SEND_VAL_EX                                                  'Foo'
          3        DO_FCALL                                          0          
          4        INIT_METHOD_CALL                                             $0, 'getProperty'
          5        SEND_VAL_EX                                                  'x'
          6        DO_FCALL                                          0  $2      
          7        INIT_METHOD_CALL                                             $2, 'getDefaultValue'
          8        DO_FCALL                                          0  $3      
          9        SEND_VAR                                                     $3
         10        DO_ICALL                                                     
         11      > RETURN                                                       1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.68 ms | 1443 KiB | 14 Q