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; } } $p = new Potatoe(); var_dump(get_object_vars($p), array_values( (array) $p ));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h9FSN
function name:  (null)
number of ops:  15
compiled vars:  !0 = $p
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'Potatoe'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   17     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'get_object_vars'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        INIT_FCALL                                               'array_values'
          9        CAST                                          7  ~5      !0
         10        SEND_VAL                                                 ~5
         11        DO_ICALL                                         $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Class Potatoe:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h9FSN
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:
172.65 ms | 1387 KiB | 19 Q