3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SomeClass { protected stdClass $a; } $type = (new \ReflectionClass(SomeClass::class))->getProperty('a')->getType(); var_dump($type->isBuiltin());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TGkX2
function name:  (null)
number of ops:  15
compiled vars:  !0 = $type
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   7     0  E >   NEW                                              $1      :25
         1        SEND_VAL_EX                                              'SomeClass'
         2        DO_FCALL                                      0          
         3        INIT_METHOD_CALL                                         $1, 'getProperty'
         4        SEND_VAL_EX                                              'a'
         5        DO_FCALL                                      0  $3      
         6        INIT_METHOD_CALL                                         $3, 'getType'
         7        DO_FCALL                                      0  $4      
         8        ASSIGN                                                   !0, $4
   8     9        INIT_FCALL                                               'var_dump'
        10        INIT_METHOD_CALL                                         !0, 'isBuiltin'
        11        DO_FCALL                                      0  $6      
        12        SEND_VAR                                                 $6
        13        DO_ICALL                                                 
        14      > RETURN                                                   1

Class SomeClass: [no user functions]

Generated using Vulcan Logic Dumper, using php 7.4.0