3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Potatoe { public $skin; protected $meat; private $roots; function __construct ( $s, $m, $r ) { $this->skin = $s; $this->meat = $m; $this->roots = $r; } } $a = new Potatoe(1,2,3); $vars = get_object_vars ( $Obj ); print_r ( $vars );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XamoS
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $vars, !2 = $Obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $3      'Potatoe'
          1        SEND_VAL_EX                                              1
          2        SEND_VAL_EX                                              2
          3        SEND_VAL_EX                                              3
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $3
   17     6        INIT_FCALL                                               'get_object_vars'
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !1, $6
   18    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Class Potatoe:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XamoS
function name:  __construct
number of ops:  10
compiled vars:  !0 = $s, !1 = $m, !2 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    9     3        ASSIGN_OBJ                                               'skin'
          4        OP_DATA                                                  !0
   10     5        ASSIGN_OBJ                                               'meat'
          6        OP_DATA                                                  !1
   11     7        ASSIGN_OBJ                                               'roots'
          8        OP_DATA                                                  !2
   12     9      > RETURN                                                   null

End of function __construct

End of class Potatoe.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.73 ms | 1395 KiB | 17 Q