3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.31 ms | 1395 KiB | 15 Q