3v4l.org

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

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

End of function __construct

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.7 ms | 1395 KiB | 17 Q