3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test implements Countable { 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/KffKL
function name:  (null)
number of ops:  10
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_CLASS                                            'test'
    6     1        NEW                                              $1      'Test'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    7     4        INIT_FCALL                                               'get_object_vars'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        COUNT                                            ~5      $4
          8        ECHO                                                     ~5
          9      > RETURN                                                   1

Class Test: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.02 ms | 1398 KiB | 15 Q