3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $prop1, $prop2,$prop3,$prop4; } $t = new Test; echo count(get_object_vars($t));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZNT1E
function name:  (null)
number of ops:  9
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    7     3        INIT_FCALL                                               'get_object_vars'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        COUNT                                            ~5      $4
          7        ECHO                                                     ~5
          8      > RETURN                                                   1

Class Test: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.44 ms | 1394 KiB | 15 Q