3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static $hoge = 'Aプロパティ'; public static function fuga() { return 'Aメソッド'; } } class B extends A { public static $hoge = 'Bプロパティ'; public static function fuga() { return 'Bメソッド'; } } echo B::$hoge; echo B::fuga(); echo A::$hoge; echo A::fuga();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rWd5v
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   FETCH_STATIC_PROP_R          unknown             ~0      'hoge'
          1        ECHO                                                     ~0
   22     2        INIT_STATIC_METHOD_CALL                                  'B', 'fuga'
          3        DO_FCALL                                      0  $1      
          4        ECHO                                                     $1
   24     5        FETCH_STATIC_PROP_R          unknown             ~2      'hoge'
          6        ECHO                                                     ~2
   25     7        INIT_STATIC_METHOD_CALL                                  'A', 'fuga'
          8        DO_FCALL                                      0  $3      
          9        ECHO                                                     $3
         10      > RETURN                                                   1

Class A:
Function fuga:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rWd5v
function name:  fuga
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E > > RETURN                                                   'A%E3%83%A1%E3%82%BD%E3%83%83%E3%83%89'
    9     1*     > RETURN                                                   null

End of function fuga

End of class A.

Class B:
Function fuga:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rWd5v
function name:  fuga
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E > > RETURN                                                   'B%E3%83%A1%E3%82%BD%E3%83%83%E3%83%89'
   18     1*     > RETURN                                                   null

End of function fuga

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.87 ms | 1393 KiB | 13 Q