3v4l.org

run code in 300+ PHP versions simultaneously
<?php $object = new \stdClass ; $ref = new \ReflectionClass( $object ) ; var_dump( $ref->getName() ) ; var_dump( $ref->name ) ; print_r( $ref ) ; var_dump( $ref ) ;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6kT5d
function name:  (null)
number of ops:  23
compiled vars:  !0 = $object, !1 = $ref
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    3     3        NEW                                              $5      'ReflectionClass'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $5
    5     7        INIT_FCALL                                               'var_dump'
          8        INIT_METHOD_CALL                                         !1, 'getName'
          9        DO_FCALL                                      0  $8      
         10        SEND_VAR                                                 $8
         11        DO_ICALL                                                 
    6    12        INIT_FCALL                                               'var_dump'
         13        FETCH_OBJ_R                                      ~10     !1, 'name'
         14        SEND_VAL                                                 ~10
         15        DO_ICALL                                                 
    8    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
    9    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.68 ms | 1395 KiB | 17 Q