3v4l.org

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

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

End of function __construct

End of class Gaidys.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.91 ms | 1395 KiB | 17 Q