3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new stdClass; $obj->foo = 'bar'; $obj->baz = 'bat'; $ref = new ReflectionObject($obj); $props = $ref->getProperties(); var_dump($props);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2FtMf
function name:  (null)
number of ops:  18
compiled vars:  !0 = $obj, !1 = $ref, !2 = $props
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    4     3        ASSIGN_OBJ                                               !0, 'foo'
          4        OP_DATA                                                  'bar'
    5     5        ASSIGN_OBJ                                               !0, 'baz'
          6        OP_DATA                                                  'bat'
    7     7        NEW                                              $8      'ReflectionObject'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !1, $8
    9    11        INIT_METHOD_CALL                                         !1, 'getProperties'
         12        DO_FCALL                                      0  $11     
         13        ASSIGN                                                   !2, $11
   10    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.45 ms | 1394 KiB | 15 Q