3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Example{ public static $ONE = [1,'one']; public static $TWO = [2,'two']; public static $THREE = [3,'three']; public static function test(){ $reflection = new ReflectionClass(get_class()); return $reflection->getStaticProperties(); } } var_dump(Example::test());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U0dYs
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_STATIC_METHOD_CALL                                  'Example', 'test'
          2        DO_FCALL                                      0  $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
          5      > RETURN                                                   1

Class Example:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U0dYs
function name:  test
number of ops:  9
compiled vars:  !0 = $reflection
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $1      'ReflectionClass'
          1        GET_CLASS                                        ~2      
          2        SEND_VAL_EX                                              ~2
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
   10     5        INIT_METHOD_CALL                                         !0, 'getStaticProperties'
          6        DO_FCALL                                      0  $5      
          7      > RETURN                                                   $5
   11     8*     > RETURN                                                   null

End of function test

End of class Example.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.06 ms | 1436 KiB | 14 Q