3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public $hello = 'world'; public function test() { $this->hello = 'bubblerubble'; echo var_dump( get_class_vars( get_class() ) ); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/quSTA
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E > > RETURN                                                   1

Class test:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/quSTA
function name:  test
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN_OBJ                                               'hello'
          1        OP_DATA                                                  'bubblerubble'
    8     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'get_class_vars'
          4        GET_CLASS                                        ~1      
          5        SEND_VAL                                                 ~1
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                         $3      
          9        ECHO                                                     $3
    9    10      > RETURN                                                   null

End of function test

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.56 ms | 1394 KiB | 17 Q