3v4l.org

run code in 500+ PHP versions simultaneously
<?php class MyClass { public $pub = 0; protected $prot = 1; private $priv = 2; } $obj = (object) (array) new MyClass(); $obj_vars = get_object_vars( $obj ); print_r( $obj_vars );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/STWer
function name:  (null)
number of ops:  13
compiled vars:  !0 = $obj, !1 = $obj_vars
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   NEW                                                  $2      'MyClass'
          1        DO_FCALL                                          0          
          2        CAST                                              7  ~4      $2
          3        CAST                                              8  ~5      ~4
          4        ASSIGN                                                       !0, ~5
   10     5        INIT_FCALL                                                   'get_object_vars'
          6        SEND_VAR                                                     !0
          7        DO_ICALL                                             $7      
          8        ASSIGN                                                       !1, $7
   12     9        INIT_FCALL                                                   'print_r'
         10        SEND_VAR                                                     !1
         11        DO_ICALL                                                     
         12      > RETURN                                                       1

Class MyClass: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
168.49 ms | 3361 KiB | 15 Q